private static function sessionRead()
	{
		// Web
		if ( isset( $_SERVER['SERVER_PROTOCOL'] ) ) {

			if ( isset( $_SESSION['auth'] ) ) return $_SESSION['auth'];

			Session::start();

			return ( isset( $_SESSION['auth'] ) ) ? $_SESSION['auth'] : array();
		}
		// CLI
		else {
			$json = @file_get_contents( '_cli_fake_session' );
			$value = json_decode( $json , true );

			return ( is_array( $value ) ) ? $value : array();
		}
	}
private static function sessionRead()
	{
		// Web
		if ( isset( $_SERVER['SERVER_PROTOCOL'] ) ) {

			if ( isset( $_SESSION['auth'] ) ) return $_SESSION['auth'];

			Session::start();

			return ( isset( $_SESSION['auth'] ) ) ? $_SESSION['auth'] : array();
		}
		// CLI
		else {
			$json = @file_get_contents( '_cli_fake_session' );
			$value = json_decode( $json , true );

			return ( is_array( $value ) ) ? $value : array();
		}
	}
private static function sessionRead ( ) { // Web if ( isset ( $ _SERVER [ 'SERVER_PROTOCOL' ] ) ) { if ( isset ( $ _SESSION [ 'auth' ] ) ) return $ _SESSION [ 'auth' ] ; Session :: start ( ) ; return ( isset ( $ _SESSION [ 'auth' ] ) ) ? $ _SESSION [ 'auth' ] : array ( ) ; } // CLI else { $ json = @ file_get_contents ( '_cli_fake_session' ) ; $ value = json_decode ( $ json , true ) ; return ( is_array ( $ value ) ) ? $ value : array ( ) ; } }
Read a session

@return  array  the array with all auth informations
Read a session