Ask a Question related to ASP.NET Security, Design and Development.
-
Daniel Jin #1
forms authentication cookie not timeout
I customized the cookie generation in forms authentication so I can keep
extra data in the cookie. but the problem now is that my forms
authentication cookie no longer times out. anybody knows what's going on?
the following is my code that creates the cookie.
string[] roleList = <custom method to get roles>;
string userData = String.Join( ";", roleList );
FormsAuthenticationTicket ticket = new FormsAuthenticationTicket(
1, userName, issueDate, issueDate.AddMinutes(1), false, userData,
FormsAuthentication.FormsCookiePath );
string encryptedTicket = FormsAuthentication.Encrypt( ticket );
HttpCookie cookie = new HttpCookie( FormsAuthentication.FormsCookieName,
encryptedTicket );
Response.Cookies.Add( cookie );
Response.Redirect( FormsAuthentication.GetRedirectUrl( userName, false ) );
Daniel Jin Guest
-
Forms Authentication - Cookie not being generated...
Hi there everyone, I'm new to this newsgroup so I hope you don't mind me just asking a question, but it has been working me for way to long now and... -
Meaning Of Timeout In FOrms Authentication..????
does Timeout deletes automatically the cookie in the clients browser i relied on forms cookie to authenticate the user and had set timeout to i... -
Forms Authentication Cookie Does Not Expire
On my asp.net application, suddenly the forms authentication cookies for clients have quit expiring. This results in users being able to access the... -
Forms Authentication Cookie via IP Only
Hello, I have a problem with the forms authentication cookie when accessing my site via http://computername/application, however when I access... -
Forms Authentication timeout doesn't work
I am trying to do some testing of my application with respect to timeouts (i.e. Session timeouts). I took the advice of somebody else in this...



Reply With Quote

