Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Web Programming > HTML > HTML Code Clinic
|
HTML Code Clinic Do you have some HTML code you'd like to share and get suggestions from others for tweaking or improving it? This discussion is the place.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the HTML Code Clinic section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 5th, 2004, 05:34 AM
Authorized User
 
Join Date: Jul 2004
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to blueguy
Default session timeout message

i have a problem friends.
first user logins a page and after 5 minutes without doing anything on that page. user automatically logs out and user needs to relogin that page .
How can i cope with this problem
give me an advice

 
Old October 5th, 2004, 07:18 AM
joefawcett's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 3,074
Thanks: 1
Thanked 38 Times in 37 Posts
Default

If you want the session to last longer then set the timeout server side. In ASP this would be the session.timeout property.

--

Joe
 
Old October 8th, 2004, 12:01 AM
Friend of Wrox
 
Join Date: Jan 2004
Posts: 1,870
Thanks: 12
Thanked 20 Times in 20 Posts
Send a message via AIM to mat41
Default

This post should be in the ASP forum, anyhow:

This property must be set in the global.asa file and be at the root level of your web site. The following is cut n paste code and sets your session time out to 20 minutes
---------------
<script runat=server language=VBScript>
sub application_onStart
end sub

sub session_onStart
    session.timeout = 20
end sub

sub session_onEnd
end sub
</script>
--------------------------

NOTE: You must have a global.asa file currently if you are timing out at 5 minutes, the default time is 20 mins.

Wind is your friend
Matt





Similar Threads
Thread Thread Starter Forum Replies Last Post
Session Timeout aspless Classic ASP Basics 1 February 21st, 2008 04:46 PM
Session Timeout innochig ASP.NET 2.0 Professional 1 May 23rd, 2007 01:03 PM
session timeout bikki_suresh ASP.NET 1.0 and 1.1 Professional 1 October 11th, 2006 07:33 AM
session timeout bikki_suresh ASP.NET 1.0 and 1.1 Basics 0 October 10th, 2006 12:16 AM
Session Timeout lcsgeek Classic ASP Basics 1 October 6th, 2003 01:53 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.