Wrox Home  
Search P2P Archive for: Go

  Return to Index  

security_asp thread: Session Time-out


Message #1 by Hao Phan <haophan@p...> on Wed, 21 Mar 2001 18:22:01 +0700
There is an event called Session_OnEnd that you could use, but it doesn't
work all the times.

-----Original Message-----
From: Hao Phan [mailto:haophan@p...]
Sent: Wednesday, March 21, 2001 10:38 PM
To: Security_asp
Subject: RE: Session Time-out


Dear,
But session("nameofyouvariable") = "" is the same with the case such as this
user has never logged in the web site.

How do we categorize two these cases:
1. If you uses session variables and assign a value to it like session
("nameofyouvariable") = "value" then you can check if session
("nameofyouvariable") = "" then session has timed-out.

Because i want to use the mechanism "lock" in my web site.
If a specific user has been logged in web site. The web site locks for this
user.
But when him does not logged out and close the browser or he leaves the
browser for a long time until the session time out.
How do we know these activity in order to unlock for this user.
2. The user does never log in web site.

Have a nice day.


-----Original Message-----
From: victoria.seltser@p...
[mailto:victoria.seltser@p...]
Sent: Wednesday, March 21, 2001 8:13 PM
To: Security_asp
Subject: Re: Session Time-out



If you use session variables and assign a value to it like session
("nameofyouvariable") = "value" then you can check if session
("nameofyouvariable") = "" then session has timed-out.

Victoria...




Hao Phan <haophan@p...> on 03/21/2001 06:22:01 AM

Please respond to "Security_asp" <security_asp@p...>

To:   "Security_asp" <security_asp@p...>
cc:
Subject:  Session Time-out


Hi,
On an ASP page, how would I check when Session time-out.
(Or Is there any event fire when Session time out?)
Regards.

-----Original Message-----
From: Ben Smith [mailto:ben@b...]
Sent: Saturday, January 20, 2001 6:48 PM
To: Security_asp
Subject: RE: Check ASP page for login


Hi

You could set a session variable when the users logs in successfully and
then test for its existence later on thus ensuring that the user has logged
in,

or,

you could check to see which page was the referrer - this may not work as
you'll probably have a processing page as a go-between anyway.

HTH

Ben Smith.

-----Original Message-----
From: playhard@m... [mailto:playhard@m...]
Sent: 20 January 2001 04:58
To: Security_asp
Subject: Check ASP page for login


Hi,
On an ASP page, how would I check to make sure the user came to that page
from my login.asp page?


  Return to Index