Wrox Programmer Forums
|
Classic ASP Databases Discuss using ASP 3 to work with data in databases, including ASP Database Setup issues from the old P2P forum on this specific subtopic. See also the book forum Beginning ASP.NET Databases for questions specific to that book. NOT for ASP.NET 1.0, 1.1, or 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Databases 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 March 30th, 2005, 02:17 AM
Authorized User
 
Join Date: Mar 2005
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default Logoff User Help

Hello Everybody:
Please I need help in logging off user in ASP,who is currently logged in.Please can anyone send me the script relating to this topic and please can anyone tell me what and where should i put on my restricted pages so when the user loggs off, he can't access restricted pages anymore.
Please help me as soon as possible.
Thank you.

 
Old March 31st, 2005, 01:27 PM
Registered User
 
Join Date: Mar 2005
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

How are you having this person log on? Are you using Sessioned Variables?

When i have someone log in to my site, I compare their username to my database, then if there is a amtch, I compare Passwords. I then flip a sessioned flag and send them on their merry way. They can only see pages that allow his particular flag in.

If a person clicks "Log Out", i simply wipe out that sessioned flag by setting it to nothing, thus preventing them from accessing the pages.

I also have it set up to wipe out the flag after a certain amount of time.






Similar Threads
Thread Thread Starter Forum Replies Last Post
Trace logoff error l.wolf Oracle 0 June 7th, 2007 05:10 AM
LogOff problem in Page aliirfan84 ASP.NET 2.0 Professional 2 May 6th, 2007 04:56 PM
Server sent email requires client logoff - why? VictorVictor ASP.NET 2.0 Professional 6 April 11th, 2007 09:50 AM
Logoff user using ASP: ali786 Classic ASP Databases 5 March 21st, 2005 12:34 PM
How Do I Restart MySQL After Logoff/Logon spjewett Beginning PHP 6 March 29th, 2004 04:23 PM





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