Session Timeout problem

This is a discussion on "Session Timeout problem" within the ASP.NET Forum section. This forum, and the thread "Session Timeout problem are both part of the Program Your Website category.



Go Back   Webforumz.com > Main Forums > Program Your Website > ASP.NET Forum

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Nov 27th, 2006, 10:15
New Member
Join Date: Nov 2006
Location: Egypt
Age: 22
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
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
Reply With Quote

  #2 (permalink)  
Old Nov 27th, 2006, 10:28
Junior Member
Join Date: Jun 2006
Location: Sheffield, South Yorkshire, UK
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Session Timeout problem

This may be of help:-

http://www.w3schools.com/asp/asp_ref_session.asp
Reply With Quote
  #3 (permalink)  
Old May 2nd, 2007, 14:45
New Member
Join Date: May 2007
Location: Wales
Age: 33
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Session Timeout problem

in your global.asax in the session_start function put the following: -

Session.timeout = 20

Or you can set it to be sliding depending on the users activity
Reply With Quote
Reply

Tags
state managment

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP Session *not your usual* problem ysamu PHP Forum 0 Mar 28th, 2008 10:00
Generating ID or Session Problem? Options chlad Classic ASP 2 Aug 21st, 2006 11:47
session timeout unexpectedly seemagaur ASP.NET Forum 0 Oct 10th, 2005 17:19
session problem fender79 Classic ASP 8 May 18th, 2005 02:26
problem with Session variable andrew_perez5 Classic ASP 0 Jan 24th, 2005 03:42


All times are GMT. The time now is 06:33.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43