Re: Need Help with cookies

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



<snip />

That's called a persistent cookie as I tried to explain and as I recall it
seems you never set an expiration in the first place so how can you be
"resetting" something that didn't exist?

And another thing you mistakenly assumed, a persistent cookie does not need
a date of expiration set a year into the future as you stated. Any values
greater than Now( ) is all that is needed to persist the cookie for that
period of time.

You set that value correctly in the code you show but the wierd date into
the past is not a default for persistent cookies. Setting the date into the
past deletes a cookie.

<%= Clinton Gallagher
METROmilwaukee (sm) "A Regional Information Service"
NET csgallagher AT metromilwaukee.com
URL http://metromilwaukee.com/
URL http://clintongallagher.metromilwaukee.com/


.



Relevant Pages

  • RE: RedirectFromLoginPage persistent cookie expiration
    ... Regarding the RedirectFromLoginPage - persistent cookie, you can control the ... expiration date, it is also a good practice too.. ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: Forms authorization cookie always set to expire in 2055?
    ... you seem to set a persistent cookie somewhere - maybe you pass in a 'true' ... as the second parameter in FormsAuthentication.RedirectFromLoginPage ?? ... the default expiration value is 50 years and would match your 2055 observation. ... Dominick Baier - DevelopMentor ...
    (microsoft.public.dotnet.framework.aspnet.security)