SQL PHP HTML ASP JavaScript articles and free scripts to download

Session Time Out or duration of active session in ASP

As the session variables are stored at server side we can't keep them for ever. Then how long we can keep the session variables at our server end ? It depends on how frequently or how long the user is interacting with the server. If the interacting period is going on then server has to keep the session variables active but if the user is not active then it will remove the session variables.

The duration within which the visitor must interact with server to keep the session live is 20 minutes by default. But this duration can be changed at script end by this command.

Session.Timeout = 10

The above line will fix the interval for 10 minute and within this time the visitor has to interact with the server to keep the session live. So inside our script we can manage the session time as per our requirement. We can display the session timeout value like this.

Response.Write "Your session will timeout after " & Session.Timeout & " Minutes"

Be the first to post comment on this article :


Google+

Post Comment This is for short comments only. Use the forum for more discussions.
Name
Email( not to be displayed)Privacy Policy
1+2=This is to prevent automatic submission by spammers. Please enter the result of the sum as asked



HTML . MySQL. PHP. JavaScript. ASP. Photoshop. Articles. FORUM Contact us

©2000-2014 plus2net.com All rights reserved worldwide Privacy Policy Disclaimer