Cookies not setting in Safari 6

和自甴很熟 提交于 2019-12-04 03:53:07
Jessie Frazelle

have you tried any of these Setting cross-domain cookies in Safari

Safari6 out of box, doesn't allow cross domain cookies which is the problem.

You can set the cookie manually with php:

setcookie(name, value, expire, path, domain);

http://php.net/manual/en/features.cookies.php

Or is this what you are already using?

Also, try using p3p headers.

<?
  header('P3P: CP=HONK');
  setcookie('test_cookie', '1', 0, '/');
?>

Have you tried PHP sessions? If I remember correctly, you can set session.use_only_cookies to 0 so that the IDs are passed using SID.

Have you tried the solution specified in this blog with a heading update 2.

http://www.reizbombardement.de/archives/safari-5-1-4-enforces-cookie-policy

I expect it works here.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!