Page 1 of 1

Loging problem

Posted: Thu Jun 18, 2009 2:00 am
by rekharajbans
can u tell me if one user login one site on one system.and when he try to login same site in other system than show user already login.how can i show it.

Re: Loging problem

Posted: Thu Jun 18, 2009 3:44 am
by requinix
Track login and last-use times. If the user did something more than (the amount of time your session cookie lasts) ago then assume they've logged out.
If you have a way to log out manually you need a bit more logic: if the last thing they did was log out then okay; if they logged in/did something less than X minutes ago they're still logged in; if they logged in/did something more than X minutes ago then they're logged out.