php - Cookie issue on google chrome -
i encounter cookie issue website.
when customer click on "remember me" before log-in, cookie created, , when leave , come later, automatically re-logged.
it works on firefox/ie & co, not chrome...
i have wrote little script test cookies creation on chrome. here :
<?php if( isset($_get['test']) ) setcookie('testsomecookie',1234,time()+60*60*24*365); ?>
it can't more simple!
when run script :
- the cookie created properly.
- if close tab , open new 1 (without pass test param), cookie still exists.
- if close google chrome , re-open it, , go test script (without pass test param), cookie not present anymore... , if on firefox or ie no problem cookie still present in cases.
- i'm trying on webserver ( not local ip address ).
- i have not activated private navigation on chrome.
- cookies enabled , works on gmail/facebook, etc... chrome keep cookies these sites!
- i checked other issues posted on web no real answers that...
so, weird issue solve if possible.
if have idea...
thank suggestions , sorry english
try see if keep local data until quit browser
checked.
its located in settings > content settings > cookies
.
see if helps.
Comments
Post a Comment