CodeCharge Studio
search Register Login  

Web Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> Archive -> GotoCode Archive

 OnLogout

Print topic Send  topic

Author Message
Paul
Posted: 03/25/2002, 8:36 AM

Can i make my admin pages automatically go to an intro screen OnLogout... to clear any parameters in the URL.

I tried using - response.redirect("Admin_Welcome.asp") - onLogout Event this takes the user to the correct page but doesn't actually log the user out....

Any ideas?
Brent
Posted: 03/25/2002, 9:42 AM

To log the user out, you need to call the login page and post the variables
FormName="Login" and FormAction="logout" to execute the logout code. This is what
happens when the Logout button is pressed. It just calls this form again with these 2 parameters.
Take a look at the login.asp code and it should become clear.
dava133
Posted: 03/26/2002, 4:46 AM

Could I just have a button say on a menu which logged someone out using this method instead of justg sending them to the login page and them having to press the logout button?? cheers
Stuart Sammels
Posted: 03/26/2002, 7:29 AM

Put the following code in open event of login page (not form).

'->Open Event Start

'Logout the user before asking for Login
Session("UserID") = Empty
Session("UserRights") = Empty

'<-Open Event End



Then create your logout link to the login page. When user clicks on logout they are sent to login page and are automatically logged out.

I find this to be the easiest way to go

Stuart

   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

MS Access to Web

Convert MS Access to Web.
Join thousands of Web developers who build Web applications with minimal coding.

CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.