Solved

Session timeout

Posted on 2009-07-06
9
366 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.)
0
Comment
Question by:RobertNZana
  • 4
  • 3
  • 2
9 Comments
 
LVL 15

Expert Comment

by:crisco96
Comment Utility
Is the server load balanced and after 10 minutes you get sent to a different server?
0
 
LVL 9

Author Comment

by:RobertNZana
Comment Utility
No.  I am hosting thru GoDaddy.
0
 
LVL 15

Expert Comment

by:crisco96
Comment Utility
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
 
LVL 9

Author Comment

by:RobertNZana
Comment Utility
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
IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 
LVL 15

Accepted Solution

by:
crisco96 earned 250 total points
Comment Utility
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
 
LVL 2

Assisted Solution

by:nathanbaker
nathanbaker earned 250 total points
Comment Utility
Another option could be to use a session state server if it is supported by your hosting company
0
 
LVL 9

Author Comment

by:RobertNZana
Comment Utility
Is that hard to set up?  I already am using a MySql Server Db.  Is this all I need? :)
0
 
LVL 2

Expert Comment

by:nathanbaker
Comment Utility
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
 
LVL 9

Author Closing Comment

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

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

This article discusses the ASP.NET AJAX ModalPopupExtender control. In this article we will show how to use the ModalPopupExtender control, how to display/show/call the ASP.NET AJAX ModalPopupExtender control from javascript, how to show/display/cal…
In .NET 2.0, Microsoft introduced the Web Site.  This was the default way to create a web Project in Visual Studio 2005.  In Visual Studio 2008, the Web Application has been restored as the default web Project in Visual Studio/.NET 3.x The Web Si…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

763 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

6 Experts available now in Live!

Get 1:1 Help Now