how to end session..?
-
i have this logout button in my application. when someone clicks on the button, he will be redirected to another page to confirm if he wants to log out. the code behind, i type
Session.Abandon();
and i also add in
Server.Transfer("login.aspx");
this part works perfectly alright.. it redirects me to the page that i want. but when i hit the backspace on the keyboard, or click on the back arrow in the browser, the page is back to the confirmation page for logout. and if i did some editing in the application, like edit user details and submit (INSERT command).. the whole thing hang, and prompts me error. how should i do, so that, when the user click or press the backspace, the "Page is Expired" will appear, instead of my confirmation for logout? i need help here. have been struggling for long. -DarkangeL-
-
i have this logout button in my application. when someone clicks on the button, he will be redirected to another page to confirm if he wants to log out. the code behind, i type
Session.Abandon();
and i also add in
Server.Transfer("login.aspx");
this part works perfectly alright.. it redirects me to the page that i want. but when i hit the backspace on the keyboard, or click on the back arrow in the browser, the page is back to the confirmation page for logout. and if i did some editing in the application, like edit user details and submit (INSERT command).. the whole thing hang, and prompts me error. how should i do, so that, when the user click or press the backspace, the "Page is Expired" will appear, instead of my confirmation for logout? i need help here. have been struggling for long. -DarkangeL-
-
if(window.history.forward(1) != null) window.history.forward(1); Put this between the tags of your page and it will disable the back button.:-D -- modified at 9:24 Wednesday 15th March, 2006
-
hmm i am using visual studio 2005.. and the code behind is C#.. componenets used is asp .net 2.0.. can i use the method you gave me? -DarkangeL-
-
hmm i am using visual studio 2005.. and the code behind is C#.. componenets used is asp .net 2.0.. can i use the method you gave me? -DarkangeL-
-
the javascript pinto1 gave you goes in your .aspx page, i.e. your html page, not your aspx.cs page i.e. codebehind page. /\ |_ E X E GG
-
oh.. so i just add the code he gave me to the aspx's html page tag right? and it doesnt matter what i use for my programming tools right? -DarkangeL-