public static function isValid() {
		if(isset($_SESSION['dachi_closed']) && !isset($_SESSION['dachi_expires']))
			return false;

		if(isset($_SESSION['dachi_expires']) && $_SESSION['dachi_expires'] < time())
			return false;

		return true;
	}
public static function isValid() {
		if(isset($_SESSION['dachi_closed']) && !isset($_SESSION['dachi_expires']))
			return false;

		if(isset($_SESSION['dachi_expires']) && $_SESSION['dachi_expires'] < time())
			return false;

		return true;
	}
public static function isValid ( ) { if ( isset ( $ _SESSION [ 'dachi_closed' ] ) && ! isset ( $ _SESSION [ 'dachi_expires' ] ) ) return false ; if ( isset ( $ _SESSION [ 'dachi_expires' ] ) && $ _SESSION [ 'dachi_expires' ] < time ( ) ) return false ; return true ; }
Is this session still valid?

Sessions are invalidated 10 seconds after regeneration, this is to allow AJAX
requests to complete execution before terminating the session. This method will
return false if the 10 second period has expired.

@return boolean
Is this session still valid?