codetoad.com
  ASP Shopping CartForum & BBS
  - all for $20 from CodeToad Plus!
  
  Home || ASP | ASP.Net | C++/C# | DHTML | HTML | Java | Javascript | Perl | VB | XML || CodeToad Plus! || Forums || RAM 
Search Site:
Search Forums:
  login logout ...  sunmeet122 at 11:33 on Friday, December 05, 2003
 

hello everybody,
I am preparing an asp login logout script with session variables.But i am facing a problem that after i successfully log out from my page, i can go to the previous page by using the back button.How can i curb this problem that whenever i go to the previous page after logging out i should get the message as to that my session has expired.
Can any body please help me.






  Re: login logout ...  beckystone78 at 19:48 on Friday, December 05, 2003
 

i dont know how to fix this problem, but i do know that most web pages tell you to close the browser to successfully end your session. try closing the browser after the user has logged out and then go back to your history and see if you can still access the pages w/o logging back in to see if that keeps it secure.

  Re: login logout ...  banu_pushpa at 10:51 on Wednesday, November 26, 2008
 

U have to kill d session.Then you can able to logout succesfuuly.


This is the code you have to use on logout button:


Session.RemoveAll();
string hstring = "<script language='javascript'> window.location.href='/forum/Logout.html'</script>";

Page.RegisterStartupScript("one", hstring);


hope you wil get now

Banu

  Re: login logout ...  beckystone78 at 13:59 on Wednesday, November 26, 2008
 

thanks! i knew if i waited patiently for 5 years someone would answer! :) just teasing thanks man!








CodeToad Experts

Can't find the answer?
Our Site experts are answering questions for free in the CodeToad forums








Recent Forum Threads
•  image and form fieild upload problem
•  Multiplying currency
•  Java Garbage Collection Boot Camp
•  validations fo form fields
•  Setting page size at which scroll bars appear in browser window (javascript)
•  before executing a function
•  how to write a code in asp.net to create a glossary .
•  I am trying to run a programme which is using PGPLOT.When I call it from browser I get following error message.
•  Re: open excel file in html page


Recent Articles
ASP GetTempName
Decode and Encode UTF-8
ASP GetFile
ASP FolderExists
ASP FileExists
ASP OpenTextFile
ASP FilesystemObject
ASP CreateFolder
ASP CreateTextFile
Javascript Get Selected Text


© Copyright codetoad.com 2001-2010