Exemplo n.º 1
0
 /**
  * Registers a function to be called on auth session timeout
  * This function will be called when the user's session times out from
  * inactivity. It might be used to reshow a login screen.
  *
  * @param mixed $handler function or an array of class=>method
  *
  * @return null
  */
 public static function registerTimeoutHandler($handler)
 {
     if (is_callable($handler)) {
         self::$_timeoutHandler = $handler;
     } else {
         Nexista_Error::init('Auth Timeout Handler Error', NX_ERROR_FATAL);
     }
 }