RegisterRegister    SearchSearch   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

AJAX upload progress bar

File sharing script

File mirror script

Newsletter script
People login double

 
Post new topic   Reply to topic    SibSoft Ltd Forum Index -> XFileSharing Pro
View previous topic :: View next topic  
Author Message
Xander-GF



Joined: 30 May 2009
Posts: 5

PostPosted: Aug 22, 2009 9:35 pm    Post subject: People login double Reply with quote

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
View user's profile Send private message Visit poster's website
PilgrimX182



Joined: 22 Mar 2006
Posts: 2109
Location: UFO Lab

PostPosted: Aug 24, 2009 12:11 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    SibSoft Ltd Forum Index -> XFileSharing Pro All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Powered by phpBB © 2001, 2005 phpBB Group