logout problem[modified]
-
when i click on logout button it does not log me out can some one tell me why is thing doing this. i have a question asp.net c# when i click logout button i am still login. what i have did made method for logout than called it from lougout button clik event but nothing happens because need to log out in my master page logout button there there for i created in my master page and called it in my master page button ckic event. the code are follow public void logout() { //sandip patel 7/18/2007 //Request.Cookies["memberID"].Expires = DateTime.Now.AddMinutes(20); //Session["Email Address"] = null ; //Session["Password"] = null ; Session.Abandon(); Response.Redirect("Default.aspx"); } and lougout click event i have call this function logout(); can some one tell me what am i doing wrong please sandip -- modified at 21:22 Friday 20th July, 2007
-
when i click on logout button it does not log me out can some one tell me why is thing doing this. i have a question asp.net c# when i click logout button i am still login. what i have did made method for logout than called it from lougout button clik event but nothing happens because need to log out in my master page logout button there there for i created in my master page and called it in my master page button ckic event. the code are follow public void logout() { //sandip patel 7/18/2007 //Request.Cookies["memberID"].Expires = DateTime.Now.AddMinutes(20); //Session["Email Address"] = null ; //Session["Password"] = null ; Session.Abandon(); Response.Redirect("Default.aspx"); } and lougout click event i have call this function logout(); can some one tell me what am i doing wrong please sandip -- modified at 21:22 Friday 20th July, 2007
-
I also try to figure it out daku1..i use Session.RemoveAll() in my logout page and redirect it to my login page. But if i push back button in my browser it redirect me to my last page(for example: viewpage.aspx),and in that page i try to push my link page or any button and it tell me must to login first. Did u already have a session check in all your web pages, that tell user to login first if the session is null? Regard, TCim