CodeCharge Studio
search Register Login  

Visual Web Reporting

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

YesSoftware Forums -> Archive -> GotoCode Archive

 Logout redirection

Print topic Send  topic

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

   


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

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


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