Ask a Question related to ASP.NET Security, Design and Development.
-
Ed West #1
FormsAuthentication.SignOut not working
Hello
This SignOut code is not working, any ideas? TIA.
public class logout : System.Web.UI.Page {
private void Page_Load(object sender, System.EventArgs e) {
FormsAuthentication.SignOut();
Response.Redirect ("default.aspx");
}
....
}
This is how I logged users on:
FormsAuthenticationTicket authTicket = new
FormsAuthenticationTicket(
1, // version
email.Text, // user name
DateTime.Now, // creation
DateTime.Now.AddMinutes(60),// Expiration
false, // Persistent
roles.ToString() );
string encryptedTicket = FormsAuthentication.Encrypt(authTicket);
HttpCookie authCookie = new HttpCookie(
FormsAuthentication.FormsCookieName,encryptedTicke t);
Response.Cookies.Add(authCookie);
// Redirect the user to the originally requested page
Response.Redirect( FormsAuthentication.GetRedirectUrl(
email.Text, false ));
Ed West Guest
-
FormsAuthentication.SignOut() not working.
In my search to understand ASP.NET security, I went to www.asp.net and was looking at their beginner source code. Here is the link to the code that I... -
formsAuthentication.Signout() not working ?? ANYONE KNOW THE ANSWER
I am using forms authentication in my apps. Every page I added: Me.Response.Expires = 0 Me.Response.Cache.SetCacheability... -
formsauthentication.signout not working too good
how do i not let the user go back after he/she signs out of my web app? i'm using formsauthentication.signout with cookies but the user is still... -
FormsAuthentication.signout does not ??
I am using forms authentication to secure my pages. For my logout, I created a logout page with FormsAuthentication.signout is called at the... -
FormsAuthentication.SignOut not working within subfolder
I'm using forms authentication to protect a subfolder within my site. I've got it working fine except for two issues: (1) When I do a... -
Ed West #2
FormsAuthentication.SignOut not working
Hello
This SignOut code is not working, people are still logged in after it
redirects to default.aspx. any ideas? Thanks.
public class logout : System.Web.UI.Page {
private void Page_Load(object sender, System.EventArgs e) {
FormsAuthentication.SignOut();
Response.Redirect ("default.aspx");
}
....
}
This is how I logged users on:
FormsAuthenticationTicket authTicket = new
FormsAuthenticationTicket(
1, // version
email.Text, // user name
DateTime.Now, // creation
DateTime.Now.AddMinutes(60),// Expiration
false, // Persistent
roles.ToString() );
string encryptedTicket = FormsAuthentication.Encrypt(authTicket);
HttpCookie authCookie = new HttpCookie(
FormsAuthentication.FormsCookieName,encryptedTicke t);
Response.Cookies.Add(authCookie);
// Redirect the user to the originally requested page
Response.Redirect( FormsAuthentication.GetRedirectUrl(
email.Text, false ));
Ed West Guest



Reply With Quote

