Timing Out a Login
Written by Eric Smith, Northstar Computer Systems LLC
A common feature on financial sites is to log a user out after a certain period of time. The easiest way to do this is with the Session object. The Session object can be configured to expire after a certain number of minutes. If you put a value into the Session object, like so:
Session("LoggedIn") = "Yes"
After the session has timed out, the value of the Session variable will be empty (compare against two double quotes). This indicates that the session has timed out, and you can redirect the user to a login page, for instance.
Keywords: [
ASP Built-in Objects
]
Publication Date: 10/1/2000
|