?
Solved

Session variable is reset in classic ASP

Posted on 2014-07-31
11
Medium Priority
?
595 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
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

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 2000 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

I have helped a lot of people on EE with their coding sources and have enjoyed near about every minute of it. Sometimes it can get a little tedious but it is always a challenge and the one thing that I always say is:   The Exchange of informatio…
When you see single cell contains number and text, and you have to get any date out of it seems like cracking our heads.
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…

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