Skip to content

Latest commit

 

History

History
11 lines (11 loc) · 433 Bytes

Session.md

File metadata and controls

11 lines (11 loc) · 433 Bytes

Dframe\Session

Methods

$session  = new Session('hashSaltRandomForSession');
$session->register(); // Set session_id and session_time - default 60
$session->authLogin(); // Return true/false if session is registrer
$session->set($key, $value); // set $_SESSION[$key] = $value;
$session->get($key, $or = null); // get $_SESSION[$key]; 
$session->remove($key) // unset($_SESSION[$key]);
$session->end(); // session_destroy