Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ASP 2.0 User logout issue

Status
Not open for further replies.

joggi

Programmer
Nov 8, 2006
44
YU
In my SQL database I have all user/login information like users, roles, permissions etc. So I have one web form with Login data: username and password. When user click button OK I check in my database that user, and if it is ok I redirect him to another page.
I wonder, when I say Logout I redirect user to Login form, but how to kill variables, how to prevent user to click Back in the browser etc. What I have to write in code for Logout event?
 
If you are talking about session variables etc, then you can use the Session.Abandon method


____________________________________________________________

Need help finding an answer?

Try the Search Facility or read FAQ222-2244 on how to get better results.

 
I have master page with side menu, and one menu item is Logout. Where to put Session.abandon , I cannot catch menu click event?
 
Use a control that does post back to the server...


____________________________________________________________

Need help finding an answer?

Try the Search Facility or read FAQ222-2244 on how to get better results.

 
Thank you for helping me, but I am new in ASP. What does "use control that does postback..." mean?
 
There are two types of controls (ASP.NET controls such as a RadioButtonList, TextBox etc) and HTML controls (such as an input, textarea etc). The former will automatically create the necessary javascript for you to post the page back to the server.


____________________________________________________________

Need help finding an answer?

Try the Search Facility or read FAQ222-2244 on how to get better results.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top