Domanda

I encounter a cookie issue with my website.

When a customer click on "remember me" before log-in, a cookie is created, and then when he leave and come back later, he is automatically re-logged.

It works on firefox/IE & co, but not for chrome...

I have wrote a little script to test the cookies creation on chrome. Here it is :

<?php 
if( isset($_GET['test']) ) setcookie('TESTSOMECOOKIE',1234,time()+60*60*24*365);
?>

It can't be more simple!

When I run the script :

  1. The cookie is created properly.
  2. If I close the tab and open a new one (without pass the test param), the cookie still exists.
  3. If I close google chrome and re-open it, and go to the test script (without pass the test param), the cookie is not present anymore... and if I do that on firefox or IE no problem the cookie still present in all cases.
  4. I'm trying this on a webserver ( not a local IP address ).
  5. I have NOT activated the private navigation on chrome.
  6. Cookies are enabled and works like on gmail/facebook, etc... chrome keep the cookies for these sites!
  7. I already checked other issues posted on the web but no real answers about that...

So, this is a very weird issue that I would like to solve if possible.

If anyone have an idea...

Thank you very much for your suggestions and sorry for my english

È stato utile?

Soluzione

Try to see if Keep local data only until I quit my browser is checked.

Its located in Settings > Content Settings > Cookies.

See if that helps.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top