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
|
|
|
 |