If you use asp or php, then you can access the server session. On one of my sites I login, and I set a session variable. The server will time out the session, and delete the set variable after a certain amount of time (default is usually between 7-10 minutes) which you can set.
Note though that if you set it short (2 min) there is a penalty for any user on the site, as after two minutes, a new connection needs to be made to the site, costing some traffic and a short delay, nothing serious though.
The only other not using php or asp would be thorugh javascript set cookies, where you can read the time the cookie was updated, but I am not sure if that is an elegant method either. And I find it very hard to work with cookies...
|