| View previous topic :: View next topic |
| Author |
Message |
Xander-GF
Joined: 30 May 2009 Posts: 5
|
Posted: Aug 22, 2009 9:35 pm Post subject: People login double |
|
|
| If people login in 1 machine and then other, the first one should be logout auto, but is not happening, how prevent that? |
|
| Back to top |
|
 |
PilgrimX182

Joined: 22 Mar 2006 Posts: 2109 Location: UFO Lab
|
Posted: Aug 24, 2009 12:11 pm Post subject: |
|
|
In index.cgi find
| Code: | | $db->Exec("DELETE FROM Sessions WHERE last_time + INTERVAL 5 DAY < NOW()"); |
and add below:
| Code: | | $db->Exec("DELETE FROM Sessions WHERE usr_id=?",$ses->{user}->{usr_id}); |
|
|
| Back to top |
|
 |
|