Re: [PHP] Auto logout

2005-03-16 Thread trlists
For the basic logout, it's very easy. Store a session variable which is the "last active time". Initialize it to the current time when the user logs in. Each time a page loads, start the session and check current time against the last active time. If the difference is over the limit, display

Re: [PHP] Auto logout

2005-03-15 Thread Dan Tappin
I do not think there is really any way around the dual login from the same browser issue. As for the auto-logout I have a suggestion. I have the same set-up for one of my sites. I have a session MySQL database and I track the id of a user once they login and then that record is updated with a

[PHP] Auto logout

2005-03-15 Thread Vaibhav Sibal
Hi I wanted to implement an auto-logout feature for my project so that if a terminal is left unattended for say 10 minutes, it should automatically logoff the user. Apart from this, there is another problem that I am encountering with my authentication scheme, the scene is as follows : (1) I am usi

Re: [PHP] Auto logout?

2002-06-24 Thread Erik Price
On Monday, June 24, 2002, at 11:14 AM, Hawk wrote: > I have a login, and when users are logged on, it should show in some > way on > the page, that's not the problem, it is to show that they are logged off > when they are, often people forget to press the logout button, and the > mysql > data

[PHP] Auto logout?

2002-06-24 Thread Hawk
I have a login, and when users are logged on, it should show in some way on the page, that's not the problem, it is to show that they are logged off when they are, often people forget to press the logout button, and the mysql database is unchanged, saying they are still logged on, how can I do so