jrp1946
|
| Posted: 02/19/2002, 11:07 PM |
|
Can anyone point me towards some example ASP code for redirection to a specific page on logout. I'm guessing it involves the custom logout event and the sPage variable but, not being a programmer, I don't know the required syntax.
|
|
|
 |
Nicole
|
| Posted: 02/20/2002, 2:04 AM |
|
Hello,
if you want customers to redirect to any specific page (and not elsewhere) on logout, create Custom Logout event, obtain generated code and modify it to get:
Session("UserID") = Empty
Session("UserRights") = Empty
cn.Close
Set cn = Nothing
response.redirect(AnyPage.asp)
|
|
|
 |
jrp1946
|
| Posted: 02/20/2002, 2:22 AM |
|
Tnank you, Nicole. I will give it a try.
|
|
|
 |
John Blood
|
| Posted: 05/01/2002, 11:43 AM |
|
Hello Nicole and all,
This is wonderful example and will delight a security conscious client of mine. How would I code this in PHP?
THANKS!
John
|
|
|
 |
Nicole
|
| Posted: 05/02/2002, 6:37 AM |
|
Hi,
here is PHP code:
session_unregister("UserID");
session_unregister("UserRights");
header("Location: AnyPage.php");
exit;
|
|
|
 |
John Blood
|
| Posted: 05/05/2002, 6:32 PM |
|
Thanks Nicole!
That did the trick.
John
jblood@beholdlearning.com
|
|
|
 |
|