Session Timeout problem


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: Session Timeout problem

  1. #1
    Join Date
    Nov 2006
    Posts
    1

    Session Timeout problem

    Hi all,

    How can I set the session TimeOut from inside the Code? Also is there a way to make the session variables Expires after a number of minutes of inactivity. i.e. I want to make the session variables expires after the user stays inactive for 20 minutes. I am using ASP.net 2.

    Thanks in advance

  2. #2
    Join Date
    Dec 2003
    Posts
    2,750
    There are a couple of different ways to do this. First, programmatically you can change the value of Session.Timeout. You can also specify a static value using the Timeout entry in the Web.config file.

    In any event, the default session timeout duration is 20 minutes.
    Paul
    ~~~~
    Microsoft MVP (Visual Basic)

Similar Threads

  1. urgent: session timeout occurs unexpectedly
    By seemagaur in forum ASP.NET
    Replies: 1
    Last Post: 01-26-2006, 10:24 AM
  2. Session Time out problem
    By sunilbenjamin in forum ASP.NET
    Replies: 0
    Last Post: 10-10-2005, 01:12 PM
  3. Reliability Problem
    By elise in forum Java
    Replies: 0
    Last Post: 10-30-2002, 05:40 AM
  4. Session Timeout
    By Constance J. Petersen in forum ASP.NET
    Replies: 1
    Last Post: 02-05-2002, 06:16 PM
  5. Session problem..! pls hlp !
    By Rishi Dhruv in forum Java
    Replies: 0
    Last Post: 11-15-2000, 02:41 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center