XFileSharing Pro - People login double
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?
			
									
									
						- PilgrimX182
- Posts: 2186
- Joined: Mar 22, 2006 1:39 pm
In index.cgi find
and add below:
			
									
									
						Code: Select all
$db->Exec("DELETE FROM Sessions WHERE last_time + INTERVAL 5 DAY < NOW()");Code: Select all
$db->Exec("DELETE FROM Sessions WHERE usr_id=?",$ses->{user}->{usr_id});

 Facebook
 Facebook Twitter
 Twitter