DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 2 of 2
  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, 09:24 AM
  2. Session Time out problem
    By sunilbenjamin in forum ASP.NET
    Replies: 0
    Last Post: 10-10-2005, 12:12 PM
  3. Reliability Problem
    By elise in forum Java
    Replies: 0
    Last Post: 10-30-2002, 04:40 AM
  4. Session Timeout
    By Constance J. Petersen in forum ASP.NET
    Replies: 1
    Last Post: 02-05-2002, 05:16 PM
  5. Session problem..! pls hlp !
    By Rishi Dhruv in forum Java
    Replies: 0
    Last Post: 11-15-2000, 01:41 AM

Bookmarks

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


Top DevX Stories

Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL


Sponsored Links