Session timeout

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.)
LVL 9
RobertNZanaAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

crisco96Commented:
Is the server load balanced and after 10 minutes you get sent to a different server?
0
RobertNZanaAuthor Commented:
No.  I am hosting thru GoDaddy.
0
crisco96Commented:
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.
0
Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

RobertNZanaAuthor 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?
0
crisco96Commented:
Yeah just write a cookie and use that to populate the user information if their session timed out.  Keep in mind that cookies can be visible/modified by anyone that has access to the computer so don't write an integer ID to the cookie since those are easy to guess, rather write a guid that you can lookup in the database.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
nathanbakerCommented:
Another option could be to use a session state server if it is supported by your hosting company
0
RobertNZanaAuthor Commented:
Is that hard to set up?  I already am using a MySql Server Db.  Is this all I need? :)
0
nathanbakerCommented:
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.
0
RobertNZanaAuthor 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.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
ASP.NET

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.