We have a very strange problem that I have not been able to track down. We have a simple cookie being set so people don't have to
login to our site everday. However, cookies keep vanishing after a day or two and I havn't been able to work it out.
I can actually see the cookie in my "Cookies" folder, however it has a [2] at the end, ie. daniel@www.miningnews[2].txt.
Now, if I go back to the site 1,2 or 3 days later (the number of days varies randomly), it does not find the existing cookie, and
creates a guestcookie, which I can see as daniel@www.miningnews[1].txt (anyone know the explanation for this ?)
Three of us have tested all the cookie creation code, checked all of the if's etc and they all work as expected. Just after a few
days, I'll find I'm no longer logged in.
Server : Win2k, IIS5 with latest patches etc
Clinet : WinXP, IE6, Set to medium security
Things I have tried/checked;
1) Made sure the expires date is set correctly.
Response.Cookies("S" & ProdID).Expires = DateAdd("Y", 1, Now)
2) Setup a full P3P policy & compact policy headers, validated with the w3c P3P validator
3) Verified that IE6 is accepting the cookie
4) Read some rumour on the net that setting the Expires statement last will fix the disappearing cookie problem, so did it
5) Verified the Now() date being returned by the server is correct (the entire site would break if this was wrong).
any help would be appreciated, (just fix my address if replying via email)
Thanks in advance,
Daniel.
We have a very strange problem that I have not been able to track down. We have a simple cookie being set so people don't have to
login to our site everday. However, cookies keep vanishing after a day or two and I havn't been able to work it out.
I can actually see the cookie in my "Cookies" folder, however it has a [2] at the end, ie. daniel@www.miningnews[2].txt.
Now, if I go back to the site 1,2 or 3 days later (the number of days varies randomly), it does not find the existing cookie, and
creates a guestcookie, which I can see as daniel@www.miningnews[1].txt (anyone know the explanation for this ?)
Three of us have tested all the cookie creation code, checked all of the if's etc and they all work as expected. Just after a few
days, I'll find I'm no longer logged in.
Server : Win2k, IIS5 with latest patches etc
Clinet : WinXP, IE6, Set to medium security
Things I have tried/checked;
1) Made sure the expires date is set correctly.
Response.Cookies("S" & ProdID).Expires = DateAdd("Y", 1, Now)
2) Setup a full P3P policy & compact policy headers, validated with the w3c P3P validator
3) Verified that IE6 is accepting the cookie
4) Read some rumour on the net that setting the Expires statement last will fix the disappearing cookie problem, so did it
5) Verified the Now() date being returned by the server is correct (the entire site would break if this was wrong).
any help would be appreciated, (just fix my address if replying via email)
Thanks in advance,
Daniel.