Home All Groups Group Topic Archive Search About

Cookie expiration ignored?

Author
2 Nov 2006 4:20 PM
SJ
Hi,

In my website, i have a cookie that allows the user to remain logged in for
upto 90days. So I'm setting the cookie expiration time to 90 days in the
future from the time the user logs in. I've been testing my code and for
some reason, the cookie expiration is being ignored (or perhaps overshadowed
by some other setting?).

Note: The user stays logged in for more than a couple of hours and then gets
logged out. I've also noticed that when the cookie goes away, it is replaced
by a cookie with name="ASP.NET_SessionId", host=my web server, expires=at
end of session.

Any idea why my cookie isn't working?

In case you need them, here are the values of other timeouts  in my
machine.config and web.config files:
web.config -- sessionState timeout="60"
machine.config -- forms timeout="3", sessionState timeout="6"

thanks,
-SJ.

AddThis Social Bookmark Button