There is no way for a server on the other side of the world to know what is on my desktop. Once I've requested a page the server knows nothing until I request another - if I sit with the window open for days there is no way the server can know. Similarly, there is no way for the server to know when I close that window.<BR><BR>Dunc
As long as the browser session is active the session variables are 'live'. Whenever a visitor opens an ASP page these session variables are active until the ASP application removes them or the visitor leaves your site. <BR><BR>By default, once a visitor leaves your site the session variables are still live for 20 minutes. Therefore, if a visitor leaves your site and returns within 20 minutes those same session variables are still active. <BR><BR>Here are some ways to set sesion variables. set it strait, from a queryString, from a form, and from a database look up.<BR><BR>Session("PASSWORDACCESS") = "Yes"<BR>Session("member_name") = request.QueryString("member_name")<BR>Session("e_m ail") = request.form("e_mail")<BR>Session("e_gold_acc") = CmdCheckUser("e_gold_acc")<BR><BR>you can make a logout page which set them to nothing. and then redirect them somewhere.<BR><BR>Session("PASSWORDACCESS") = "No"<BR>Session("member_name") = ""<BR>Session("e_mail") = ""<BR>Response.Redirect "http://www.cornucopiaclub.com/membersLogin.asp"<BR><BR><BR>Hope that helps ..later
In my case. I dont want my session to be expired until the page is open(He may keep the page open for 45 mins without working). Instead It has to expire closing the same page.<BR><BR>How to do this.<BR><BR>Peri.
<BR>i'm not fully understanding your question. sorry i dont now if this might help. if not sorry i can help you then..<BR>using a global.asa file.. with something like this in it..<BR>sission.timeout set it to how everlong you want.<BR><BR>Sub Session_OnStart<BR> session.timeout = 100 <BR>End Sub<BR><BR>Sub Session_OnEnd<BR> 'script to be executed here<BR>End Sub