XFileSharing Pro - People login double

Powerfull XFileSharing version

Moderator: admin

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

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: 2182
Joined: Mar 22, 2006 1:39 pm
Location: UFO Lab
Contact:

#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});


Return to “XFileSharing Pro”

Who is online

Users browsing this forum: Google [Bot] and 0 guests