Solved

Session variable is reset in classic ASP

Posted on 2014-07-31
11
515 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 32

Expert Comment

by:Big Monty
Comment Utility
0
 

Author Comment

by:perlwhite
Comment Utility
It is in a shared hosting environment. I don't have control over the IIS server.
0
 
LVL 32

Expert Comment

by:Big Monty
Comment Utility
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
 

Author Comment

by:perlwhite
Comment Utility
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
Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 
LVL 32

Accepted Solution

by:
Big Monty earned 500 total points
Comment Utility
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
Comment Utility
I will try the AJAX solution. Thanks.
0
 
LVL 32

Expert Comment

by:Big Monty
Comment Utility
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
Comment Utility
The solution worked
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

I would like to start this tip/trick by saying Thank You, to all who said that this could not be done, as it forced me to make sure that it could be accomplished. :) To start, I want to make sure everyone understands the importance of utilizing p…
This article is the result of a quest to better understand Task Scheduler 2.0 and all the newer objects available in vbscript in this version over  the limited options we had scripting in Task Scheduler 1.0.  As I started my journey of knowledge I f…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

728 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now