Safari ignore "expire" cookie directive

Viewed 1569

Safari on MAC, iPhone and iPad is ignoring expire directive of cookie creation and it clear cookies after closing the browser, can you please explain why, and how can i resolve this issue.

This is the php code that i use to create cookie.

setcookie('cookie_test', 'cookie_data', time() + 60 * 60 * 24 * 720, "/", ".domain.com");

Thank you

1 Answers

I had the same problem, I am not sure if this would be appropriate for your case. But deleting the cookie from the backend seems to work.

So from the client you send a request to the server and delete the cookies or update them on the response.

Related