Session Variables expire after the amount of minutes specified in the Global.asa file in the setting : <BR><BR>Session.Timeout = 20 (for example).<BR><BR>If you don't use a global.asa file then the default is usually 20 minutes.<BR><BR>Hope this helps.<BR><BR>
If you are not using a global.asa file, you can set the time out in IIS by bringing up the properties of your site going to the website tab and changing the connection time out to whatever you what in seconds. Also you can limit the number of sessions to ease server load if you wish.
We've set the Session.TimeOut <BR>but the problem is that the application drop random variables (session) after a random amount of time.<BR>I've never seen it before and always used session varibles without any problems
U can use this script inorder to redirect him to the login screen <BR><BR><%<BR> if Session("gUserID") = "" then<BR> %><BR> <SCRIPT language="VBScript"><BR> <!--<BR> self.top.location.href = "Password.asp" <BR> '--><BR> </SCRIPT><BR> <BR> <% <BR> end if<BR> <BR> %>