Solved

Session variable is reset in classic ASP

Posted on 2014-07-31
11
537 Views
Last Modified: 2014-08-01
Hello,
Session.Timeout is set to 240. Script.Timeout is also set to very high. Both values are maintained (confirmed using response.write). However, one of the Session variables is set to blank after about 15 minutes or so. Are there any other configuration settings or variables that need to be looked at?
Thanks!
0
Comment
Question by:perlwhite
  • 4
  • 4
11 Comments
 
LVL 33

Expert Comment

by:Big Monty
ID: 40233147
0
 

Author Comment

by:perlwhite
ID: 40233156
It is in a shared hosting environment. I don't have control over the IIS server.
0
 
LVL 33

Expert Comment

by:Big Monty
ID: 40233168
Hmmm, do you have access to the application pool settings?

http://asp-net.vexedlogic.com/2012/05/23/aspasp-net-session-timeout-how-do-i-change-it/

You mentioned seeing the timeout property in the code, are you seeing it in the global.asa file as shown at the bottom of the page in the link above?
0
Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 

Author Comment

by:perlwhite
ID: 40233180
I don't have access to Application Pool Settings. The site is on GoDaddy. The value is being set in the global.asa file.
0
 
LVL 33

Accepted Solution

by:
Big Monty earned 500 total points
ID: 40233192
I don't think you'll be able to change it with GDs shared hosting option then. I remember seeing related  issues in the past on this.

Last thing you can try is adding the following to your Web.config file,if you have one:

<sessionState timeout ="120" mode="InProc" cookieless="true" />

Otherwise you're not going to be able to override their settings. One way around it would be to make an Ajax call on each page you want to extend the session  to the server every ten minutes or so, this will keep your session alive
0
 

Author Comment

by:perlwhite
ID: 40233225
I will try the AJAX solution. Thanks.
0
 
LVL 33

Expert Comment

by:Big Monty
ID: 40233923
The Ajax solution is indeed a valid suggestion as I have used it before in my own apps. As for GD bit supporting it in a shared environment, there  were multiple questions on stackoverflow stating  this, but I didn't want break EE guide lines by posting a link to it.
0
 

Author Comment

by:perlwhite
ID: 40234062
The solution worked
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Have you ever needed to get an ASP script to wait for a while? I have, just to let something else happen. Or in my case, to allow other stuff to happen while I was murdering my MySQL database with an update. The Original Issue This was written…
With User Account Control (UAC) enabled in Windows 7, one needs to open an elevated Command Prompt in order to run scripts under administrative privileges. Although the elevated Command Prompt accomplishes the task, the question How to run as script…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

827 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question