Session Variable Time-outs 
Author Message
 Session Variable Time-outs

I use a session variable on my site, but if a user logs in and doesn't use
the site for more than 10 minutes it times out and they have to log in
again. Is there something I can do to stop the session variable from timing
out?

Charles



Sat, 16 Oct 2004 22:28:57 GMT  
 Session Variable Time-outs
Sure, just set session.timeout to whatever you want. As
far as I recall, the value is in minutes. In which case,
doing
session.timeout = "60"
would make it timeout in an hour

HTH,
Sara

Quote:
>-----Original Message-----
>I use a session variable on my site, but if a user logs
in and doesn't use
>the site for more than 10 minutes it times out and they
have to log in
>again. Is there something I can do to stop the session

variable from timing
Quote:
>out?

>Charles

>.



Sat, 16 Oct 2004 22:42:43 GMT  
 Session Variable Time-outs
If you don't want the probably rise in resource usage for a loaded web site
on your server, you can arrange for a specific ASP page to be called every 5
minutes (use a hidden frame / iframe or whatever). I believe that as long as
it calls an ASP page the session timer will be reset (you may have to
actually access a session object to do this - I'm not 100% sure).

Please correct me if I'm wrong anyone - I have't actually implemented this
one before.

Chris.


I use a session variable on my site, but if a user logs in and doesn't use
the site for more than 10 minutes it times out and they have to log in
again. Is there something I can do to stop the session variable from timing
out?

Charles



Sun, 17 Oct 2004 00:52:27 GMT  
 Session Variable Time-outs
Hi Chucky Chuck!

You can also set the timeout globally for a site by

Open Internet Services Manager
Choose the web you want to alter the session timeout
Click 'Configuration'
Then the App Options tab
Change the session timeout to whatever you want.

The default is 20 minutes I think.

James


Quote:
> I use a session variable on my site, but if a user logs in and doesn't use
> the site for more than 10 minutes it times out and they have to log in
> again. Is there something I can do to stop the session variable from
timing
> out?

> Charles



Sun, 17 Oct 2004 13:53:26 GMT  
 Session Variable Time-outs
Hi Chucky Chuck!

You can also set the timeout globally for a site by

Open Internet Services Manager
Choose the web you want to alter the session timeout
Click 'Configuration'
Then the App Options tab
Change the session timeout to whatever you want.

The default is 20 minutes I think.

James


Quote:
> I use a session variable on my site, but if a user logs in and doesn't use
> the site for more than 10 minutes it times out and they have to log in
> again. Is there something I can do to stop the session variable from
timing
> out?

> Charles



Sun, 17 Oct 2004 03:15:42 GMT  
 Session Variable Time-outs
In all honesty, unless you are specifically NEEDING the security of a
Session Variable and even the timeout feature, try to consider other ways of
maintaining state and values: the query string, post methods and - of
course - cookies.

Session variables require that cookies be enabled and they can be a resource
hog. Each time a browser is opened into your site, there's a session ...
there could be hunbdreds of sessions going at anyone time. When someone
leaves, the session continues for the length of its life. Sara suggested 40
or 60 minutes, this is BAD, because your visitor would leave but his session
would still be running for an hour afterwards. Meanwhile a flood of visitors
come in and the resource requirements start to climb.

Are Session Variables Really Evil?
http://www.4guysfromrolla.com/webtech/faq/Advanced/faq4.shtml

A Scalable alternative to session variables
http://www.4guysfromrolla.com/webtech/041600-2.shtml

Pros and Cons of Session Variables
http://www.aspfaqs.com/webtech/092098-2.shtml


Quote:
> I use a session variable on my site, but if a user logs in and doesn't use
> the site for more than 10 minutes it times out and they have to log in
> again. Is there something I can do to stop the session variable from
timing
> out?

> Charles



Sun, 17 Oct 2004 19:32:37 GMT  
 
 [ 6 post ] 

 Relevant Pages 

1. Filesystem Time outs

2. Time-outs

3. Need help with time outs

4. Object Time Out vs. Session Time Out

5. Splitting Session Variable into several variables (array?)

6. Type mismatch when comparing session variable to page variable

7. Run Time Error 91: Object variable or With Block variable not set

8. How do I select a constant time range from a variable time range using VBA

9. Session variables in outlook

10. dotnet Session variable set too late - Error Page Description related

11. ASP.NET VB Session Variables

12. Problem persisting Session variables.

 

 
Powered by phpBB® Forum Software