Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old July 19th, 2005, 07:27 AM
Daniel Soderstrom
Guest
 
Posts: n/a
Default Cookie not persisting, BUT I can see it!!

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.yoursite.com[2], when I log
into the site again, it creates daniel@www.yoursite.com[1]

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 and validated with the w3c 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

any help would be appreciated, (just fix my address if replying via email)

Daniel.



  #2  
Old July 19th, 2005, 07:32 AM
AkEEmOdO
Guest
 
Posts: n/a
Default Re: Cookie not persisting, BUT I can see it!!

Response.Cookies("S" & ProdID).Expires = DateAdd("Y", 1, Now)
this script add one year before it expire
try if you want your cookie to stay alive only one day
Response.Cookies("S" & ProdID).Expires = DateAdd("D", 1, Now)

Le 07/08/2003 02:49, Daniel Soderstrom a écrit :[color=blue]
> 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.yoursite.com[2], when I log
> into the site again, it creates daniel@www.yoursite.com[1]
>
> 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 and validated with the w3c 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
>
> any help would be appreciated, (just fix my address if replying via email)
>
> Daniel.
>
>
>[/color]

 

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles