Get ready for BLACK FRIDAY shopping starting in

Forums

This topic is locked

session timing

Posted 18 Jul 2002 12:40:47
1
has voted
18 Jul 2002 12:40:47 Serge Chabert posted:
when users connect on my website and open their session, i would like to have a behavior that end the session if there is no activity after a certain amount of time. i there a tutorial that explain how to do it ?

Replies

Replied 18 Jul 2002 13:26:56
18 Jul 2002 13:26:56 Viktor Farcic replied:
Create file with a name global.asa.

Code in this file should be something like:
<pre id=code><font face=courier size=2 id=code>
&lt;SCRIPT LANGUAGE=VBScript RUNAT=Server&gt;

Sub Session_OnStart

Session.Timeout = 30

End Sub

&lt;/SCRIPT&gt;
</font id=code></pre id=code>
* Session.Timeout = 30 (number of minutes the session will last)

Upload this file to the root of your site.

<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>
when users connect on my website and open their session, i would like to have a behavior that end the session if there is no activity after a certain amount of time. i there a tutorial that explain how to do it ?
<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>

Viktor Farcic
www.farcic.com
TalkZone Manager
Replied 18 Jul 2002 14:24:54
18 Jul 2002 14:24:54 Julio Taylor replied:
is there a PHP alternative to this?

thanks!

------------------------
Poolio

MSN:

www.eliziumdesign.com
Replied 18 Jul 2002 19:27:44
18 Jul 2002 19:27:44 aegis kleais replied:
On top of what vfarcic wrote, you may need to ask the host setup an application for your root directory. By default a session will timeout in 20 minutes on an IIS 5.1 server. You can change this value with the Server.Timeout = #

Aegis Kleais
New Media Web Developer
(DWMX : IIS5.1 : SQL2K : WXP : ASP[VB/JS])

Reply to this topic