Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Session Variables Deleting Themselves

Status
Not open for further replies.

cfk

Programmer
Jan 16, 2002
60
GB
I have a popup window for users to login.
Users can login successfully and continue to navigate
the site without a problem but only while the login
popup is still open.
As soon as this window is closed the Session variable
is deleted.
The popup contains no client side code, it has no
onunload events associated. or any other events associated
with any tag within the page.
I can have the popup window opan for 5 mins to 50 mins
and I'll be able to navigate the sit, but as soon
as it is closed the next page I go to kicks me out
due to the Session variable being deleted.
I have comented out all the security checks and am
outputting the value stored in the session variable
on all pages.
It outputs the correct value while the popup is
still open, but as soon as the popup is closed the
output is an empty string.
I have gone through all the basic checks, such as
rebooting the server and outputing the value of the
variable at every turn, but I am completly stuck.
Has anyone had this problem or know of any IIS issues
that may be causing this.
The server is running IIS 5 in windows 2000 with
SQL Server 2000 and PCAnywhere 10 installed.
Many thanks.
 
Hey, I've never tried anything like what you are describing. However, I can add my two cents.

Are you using a pop-up window, like a dialog box. That may be causing the problem.

I would reccommend using a sign-on page instead of a pop-up dialog. You would then need a log out link on all you pages.

From what i understand, it's a good idea to stay away from pop-up's in ASP. Since the code runs on the server, the pop-up box appears on the server, not the client. That could possibly lead to some crashes.

Javascript is best for client side pop-up's

Hope I could help
 
The popup window is generated via client side javascript
window.open().
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top