Solved

Session timeout

Posted on 2009-07-06
9
376 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
[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
  • 3
  • 2
9 Comments
 
LVL 15

Expert Comment

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

Author Comment

by:RobertNZana
ID: 24788131
No.  I am hosting thru GoDaddy.
0
 
LVL 15

Expert Comment

by:crisco96
ID: 24788207
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
Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

 
LVL 9

Author Comment

by:RobertNZana
ID: 24788358
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
 
LVL 15

Accepted Solution

by:
crisco96 earned 250 total points
ID: 24788428
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
ID: 24790859
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
ID: 24791209
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
ID: 24791422
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
ID: 31600300
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

Creating Instructional Tutorials  

For Any Use & On Any Platform

Contextual Guidance at the moment of need helps your employees/users adopt software o& achieve even the most complex tasks instantly. Boost knowledge retention, software adoption & employee engagement with easy solution.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
looking for an ASP.net report designer 4 51
asp.net get gridview datakey from row command 2 45
Create a Dropdown list with sub group 10 43
Shared Service Environment 2 54
Lots of people ask this question on how to extend the “MembershipProvider” to make use of custom authentication like using existing database or make use of some other way of authentication. Many blogs show you how to extend the membership provider c…
Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…
Suggested Courses

739 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