Solved

Session variable is reset in classic ASP

Posted on 2014-07-31
11
529 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
3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

 

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

Is Your AD Toolbox Looking More Like a Toybox?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

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

Welcome, welcome!  If you are new to the series and haven't been following along, please take a brief moment to review the first three installments: Part 1 (http://www.experts-exchange.com/Programming/Languages/Visual_Basic/VB_Script/A_266-VBScri…
When it comes to writing scripts for a Client/Server computing environment it is essential to consider some way of enabling the authentication functionality within a script. This sort of consideration mainly comes into the picture when we are dealin…
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…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

770 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