Solved

Session variable is reset in classic ASP

Posted on 2014-07-31
11
568 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

 

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

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

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

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…
I was asked about the differences between classic ASP and ASP.NET, so let me put them down here, for reference: Let's make the introductions... Classic ASP was launched by Microsoft in 1998 and dynamically generate web pages upon user interact…
In this video, viewers are given an introduction to using the Windows 10 Snipping Tool, how to quickly locate it when it's needed and also how make it always available with a single click of a mouse button, by pinning it to the Desktop Task Bar. Int…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

688 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