RE: Cookie Expires In 2.0 Framework
- From: Peter Bromberg [C# MVP] <pbromberg@xxxxxxxxxxxxxxxxxxx>
- Date: Thu, 1 Jun 2006 13:31:02 -0700
Isn't there a cookiePath attribute? Try putting that in, set to = "/".
Peter
--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com
"Adam Bates" wrote:
Many thanks for the replies. I have used an application to test the cookie..
The cookie has an expiry date which is in the future. So I can guessing the
cookie is being created correctly.
In the web.config I have the following
<forms name="tamworthfcfans" timeout="50000000" slidingExpiration="true" />
Thanks again
Adam
"Peter Bromberg [C# MVP]" wrote:
Adam,
For Forms Authentication, cookie settings have been changed in asp.net 2.0,
and now persistent cookies take their lifetime from the timeout value in the
<forms> node in the web.config.
That's probably why the change in expiration.
Peter
--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com
"Adam Bates" wrote:
Hello,
I have a problem, I have been using Cookie Authentication on the 1.1
framework for around 3 months, when I moved the site internally within my
hosting company from a server with 1.1 framework to a server with 2.0
framework I have had cookie expiring problems.
Since moving to the 2.0 server, the cookies now expire within 24 hours at
the most. I have checked that the cookie has a expiry date in the future,
which it does (6 years in the future). However it still breaks.
The server is 2003 with IIS 6. I have spoken to their server admins in
length and they believe the servers are setup pretty much the same.
Any advice would be gratefully received.
Regards Adam
- Follow-Ups:
- RE: Cookie Expires In 2.0 Framework
- From: Adam Bates
- RE: Cookie Expires In 2.0 Framework
- Prev by Date: Re: Returning memory
- Next by Date: IDE's for 2.0 (of the open source variety)
- Previous by thread: Re: Cookie Expires In 2.0 Framework
- Next by thread: RE: Cookie Expires In 2.0 Framework
- Index(es):
Relevant Pages
|