Wrox Programmer Forums
|
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Servlets section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 10th, 2005, 02:33 AM
Registered User
 
Join Date: Apr 2005
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default Logout page

i have one login page and five other pages.In all other pages,i need Logout button.can i do this logout without using include tag.How?

Advanced thanks.

 
Old September 20th, 2005, 12:27 PM
Authorized User
 
Join Date: Jul 2003
Posts: 60
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to merediths
Default

Well, how you log out depends entirely on how you are doing your session management, but let's say that when a user logs in, you set a session variable bAuthenticated to TRUE, and then on every other page you check to see that bAuthenticated is true (if not redirect to login page), then, on the LogOut page you can set bAuthenticated to false again.

Regards,
Meredith Shaebanyan






Similar Threads
Thread Thread Starter Forum Replies Last Post
logout MunishBhatia ASP.NET 2.0 Professional 2 May 25th, 2007 02:52 AM
how to redirect to logout page when session expire madhusrp ASP.NET 2.0 Basics 10 April 4th, 2007 08:16 AM
logout TIME and logout DATE crmpicco Classic ASP Databases 2 January 20th, 2005 12:01 AM
logout TIME and logout DATE crmpicco Classic ASP Basics 0 January 19th, 2005 07:57 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.