Wrox Programmer Forums
|
Classic ASP Professional For advanced coder questions in ASP 3. 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 Professional 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 September 26th, 2003, 07:14 AM
Authorized User
 
Join Date: Aug 2003
Posts: 52
Thanks: 0
Thanked 0 Times in 0 Posts
Default Session Variable Problem

I am using a session variable Session("UID") for each of
my registered clients. As soon my client logins, after authentication
I assign Session("UID") a unique Id corresponding to each user which is stored in database and is fixed for a user.
At the top of each page i am checking :
 if Session("UID") = "" then response.redirect(logout.asp")
In logOut.asp i simply Abandon the Session.
Now when i try to open a page directly by appending to the querystring a ID which doesnt exist...my code simply redirects to logout.asp.
when i do this for the first time and if i try to go back from logout.asp page and click on any buttons or links..it simply doesnt allow and takes back to the logout page.
But when i login again and try the same thing for the second time...all the links remain effective and operate proerly..indicating that even after call to Session.abandon in logout.asp ...still the Session is active.

What's the problem??
Pls help me out.




 
Old October 1st, 2003, 10:51 PM
Authorized User
 
Join Date: Sep 2003
Posts: 19
Thanks: 0
Thanked 0 Times in 0 Posts
Default

check out this page:
http://beta.experts-exchange.com/Web/Q_20642429.html

it worked for me.





Similar Threads
Thread Thread Starter Forum Replies Last Post
problem with session variable prabhatsriva01 ASP.NET 2.0 Professional 3 May 10th, 2007 11:41 AM
Session Variable Problem caterpillar General .NET 0 August 17th, 2006 11:26 AM
Another Session Variable Problem [email protected] Classic ASP Databases 1 August 1st, 2004 03:58 AM





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