We help IT Professionals succeed at work.

Check out our new AWS podcast with Certified Expert, Phil Phillips! Listen to "How to Execute a Seamless AWS Migration" on EE or on your favorite podcast platform. Listen Now

x

Session timeout

RobertNZana
RobertNZana asked
on
Medium Priority
410 Views
Last Modified: 2012-08-13
In my web.config I set session timeout as follows...

         <sessionState cookieless="false" timeout="99999">
        </sessionState>

But it seems to timeout after like 10 minutes.  No, I don't clear it in code anywhere.

(I'm using my own security and I have session("LoggedIn") as True.  If it's False it's kicked out to the Login page.  So, after like 10 minutes it kicks the user out to the Login page.)
Comment
Watch Question

Commented:
Is the server load balanced and after 10 minutes you get sent to a different server?

Author

Commented:
No.  I am hosting thru GoDaddy.

Commented:
Perhaps your application pool is recycling after 10 minutes of inactivity.  Also check to see if it's recycling because too much memory is being used.  There should be some entries in the event log if this is happening.

Author

Commented:
Since I'm using GoDaddy hosting I'm not sure if I can confirm any of this.

If I use cookies to show if I'm logged in is that a better solution?
Commented:
Unlock this solution with a free trial preview.
(No credit card required)
Get Preview
Unlock this solution with a free trial preview.
(No credit card required)
Get Preview

Author

Commented:
Is that hard to set up?  I already am using a MySql Server Db.  Is this all I need? :)
no its a windows service that you setup, you can use sql server session states that is your third option, but session state server works really well in my experience.

Author

Commented:
I ended up upgrading my devart mydirect.net component to the latest, which has a timeout setting, and it works better now.  Thanks everyone.
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a free trial preview!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.