Ejemplo n.º 1
0
Archivo: S.php Proyecto: hfw/h
 /**
  * Initialize a new session for a user, such as for a login.
  * Registers a listener for the `error` event to reset the session to its initial state.
  */
 public static function start()
 {
     session_start();
     self::$reset = $_SESSION;
     E::listen('error', function () {
         self::reset();
     });
 }