Signout not working
-
I have created a link button as signout. On click of liink button i have done following coding FormsAuthentication.SignOut(); Response.Redirect("Login1.aspx"); This works only if i try to access any page by typing in url. but if i click on back button it permits me to visit the page.. Might be my cookies are interfering with this as i have used persistant cookie on the login page.. Please suggest a soln to this scotchy
-
I have created a link button as signout. On click of liink button i have done following coding FormsAuthentication.SignOut(); Response.Redirect("Login1.aspx"); This works only if i try to access any page by typing in url. but if i click on back button it permits me to visit the page.. Might be my cookies are interfering with this as i have used persistant cookie on the login page.. Please suggest a soln to this scotchy
Hi scotchy The page is probably being cached. To turn off caching for the page, use this code:
Response.Expires = 0
Response.Cache.SetNoStore()
Response.AppendHeader("Pragma", "no-cache")Regards Rajeesh MP
-
Hi scotchy The page is probably being cached. To turn off caching for the page, use this code:
Response.Expires = 0
Response.Cache.SetNoStore()
Response.AppendHeader("Pragma", "no-cache")Regards Rajeesh MP
Thx Rajeesh for the soln.. I dont know whether this is correct or not.. I have inserted the code in MasterPage and working for me.. just want to know whether things can be made at the Global.asax Regards scotchy
modified on Tuesday, January 13, 2009 1:18 AM
-
Thx Rajeesh for the soln.. I dont know whether this is correct or not.. I have inserted the code in MasterPage and working for me.. just want to know whether things can be made at the Global.asax Regards scotchy
modified on Tuesday, January 13, 2009 1:18 AM
hi scotchy ha ha ha..GREAT