| Author: guru prasad 20 Jan 2009 | Member Level: Gold Points : 0 |
Thank you.....
|
| Author: savithri 21 Jan 2009 | Member Level: Silver Points : 1 |
But i didnt understand where the code to be placed. Could you please explain to me.. Thanks
|
| Author: One Earth 22 Apr 2009 | Member Level: Gold Points : 2 |
Place the following code on the logout button event
protected void lnkbtLogOut_Click(object sender, EventArgs e) { FormsAuthentication.SignOut(); Session["UserInfo"] = null; Response.Cache.SetCacheability(HttpCacheability.NoCache); Session.Clear(); Session.Abandon(); Response.Cookies.Add(new HttpCookie("ASP.NET_SessionId", "")); Response.Redirect("~/Login.aspx", true); }
|
| Author: sri 22 Oct 2009 | Member Level: Silver Points : 2 |
Hi i tried this logout code its working fine but when we click the back button it should not redirect the page but here the page is redirecting the page and logout link is appear. I dont want to get like this if the back button is clicked the page should not redirect to the logout page.... can anyone help
|
| Author: sri 24 Oct 2009 | Member Level: Silver Points : 1 |
place the following code in logout page with in load function i hope it will be useful.
Response.Buffer = true; Response.ExpiresAbsolute = DateTime.Now.AddDays(-1d); Response.Expires = -1500; Response.CacheControl = "no-cache";
|