XFileSharing Pro - People login double

Message
Author
Xander-GF
Posts: 5
Joined: May 30, 2009 6:20 pm

People login double

#1 Postby Xander-GF » Aug 22, 2009 9:35 pm

If people login in 1 machine and then other, the first one should be logout auto, but is not happening, how prevent that?

User avatar
PilgrimX182
Posts: 2186
Joined: Mar 22, 2006 1:39 pm

#2 Postby PilgrimX182 » Aug 24, 2009 12:11 pm

In index.cgi find

Code: Select all

$db->Exec("DELETE FROM Sessions WHERE last_time + INTERVAL 5 DAY < NOW()");
and add below:

Code: Select all

$db->Exec("DELETE FROM Sessions WHERE usr_id=?",$ses->{user}->{usr_id});