: , , /, (, md5 ) - , , .
//get current logged in user user - this way we get it as a GET or POST parameter - NOT safe, because the user can modify this parameter - you could get it from the login form for example
$current_user = md5($_REQUEST["user"]);
// start user sessions like this
ini_set('session.save_handler', 'files');
//load the session of the current user
$current_user = md5($_REQUEST["user"]);
//set the current session id to the one corresponding to current user
session_id($current_user);
session_save_path("/tmp/sessions/");
session_start();
, md5 , :
$current_user = md5($_REQUEST["user"]);
unlink("/tmp/sessions/$current_user");
,