Vishwas Lele's WebLog

Fleeting thoughts...

Sponsors

Tags

No tags have been created or used yet.

New FormsAuthentication & Cookie Persistence

Why are there multiple ways to set cookie peristence for ASP.NET Forms authentication? Each of the following related methods [1] allows you affect the cookie expiration period.

FormsAuthenticationTicket Constructor

FormsAuthentication.GetRedirectUrl Method
  

HttpCookie.Expires Property

[1] For example, consider the following sequence of related operations:

Create an authentication ticket (FormsAuthenticationTicket)

Derive a cookie from the ticket (FormsAuthentication.Encrypt)

Get the redirect URL (FormsAuthentication.GetRedirectUrl)

Set the cookie (Response.Cookies.Add(cookie) )

Comments

TrackBack said:

^_^,Pretty Good!
# April 10, 2005 7:22 AM

TrackBack said:

^_~,pretty good!
# April 17, 2005 5:33 AM

Nelson said:

Could you help me. Where so many hours have been spent in convincing myself that I am right, is there not some reason to fear I may be wrong? Help me! Please help find sites for: Table pad manufacturers. I found only this - <a href="www.harveyrose.com/.../TablePads">mckay custom table pads</a>. Table pads, usually, assuming the darts is actually next. No steps played over the private 2 massages, table pads. Waiting for a reply :rolleyes:, Nelson from Singapore.

# March 23, 2010 12:56 AM

Home Security Monitoring said:

actually make it seem so easy with your presentation but I find this topic to be actually something which I think I would never understand. It seems too complex and very broad for me. I'm looking forward for your next post, I will try to get the hang of it!

<b><a href="valexo.com/.../i-was-born-as-a

">Home Security Monitoring

<a/><b/>

# April 7, 2011 3:39 AM

Download oem software said:

4IVs0O It's straight to the point! You could not tell in other words! :D

# September 28, 2011 5:51 PM

nakedb said:

artwork of  <a href=www.dalitnetwork.org/go naked video clips</a> all naked celebs .

# November 26, 2011 8:26 AM
Leave a Comment

(required) 

(required) 

(optional)

(required)