public function checkSession ($session = FALSE)
	{
		
		// If there is no session, get it
		
		if ($session === FALSE)
		{
			$session	= $this->getSessionData ();
		}
		
		// No id
		
		if (!Parser::_ak ($session, 'id', FALSE))
		{
			return 'no_id';
		}
		
		// No email
		
		if (!Parser::_ak ($session, 'email', FALSE))
		{
			return 'no_email';
		}
		
		// No login timestamp
		
		if (!Parser::_ak ($session, 'login_timestamp', FALSE))
		{
			return 'no_login_timestamp';
		}
		
		// No last action
		
		if (!Parser::_ak ($session, 'last_action', FALSE))
		{
			return 'no_last_action';
		}
		
		// No active status
		
		if (!Parser::_ak ($session, 'active', FALSE))
		{
			return 'no_active';
		}
		
		// return TRUE
		
		return TRUE;
		
	}
public function checkSession ($session = FALSE)
	{
		
		// If there is no session, get it
		
		if ($session === FALSE)
		{
			$session	= $this->getSessionData ();
		}
		
		// No id
		
		if (!Parser::_ak ($session, 'id', FALSE))
		{
			return 'no_id';
		}
		
		// No email
		
		if (!Parser::_ak ($session, 'email', FALSE))
		{
			return 'no_email';
		}
		
		// No login timestamp
		
		if (!Parser::_ak ($session, 'login_timestamp', FALSE))
		{
			return 'no_login_timestamp';
		}
		
		// No last action
		
		if (!Parser::_ak ($session, 'last_action', FALSE))
		{
			return 'no_last_action';
		}
		
		// No active status
		
		if (!Parser::_ak ($session, 'active', FALSE))
		{
			return 'no_active';
		}
		
		// return TRUE
		
		return TRUE;
		
	}
public function checkSession ( $ session = FALSE ) { // If there is no session, get it if ( $ session === FALSE ) { $ session = $ this -> getSessionData ( ) ; } // No id if ( ! Parser :: _ak ( $ session , 'id' , FALSE ) ) { return 'no_id' ; } // No email if ( ! Parser :: _ak ( $ session , 'email' , FALSE ) ) { return 'no_email' ; } // No login timestamp if ( ! Parser :: _ak ( $ session , 'login_timestamp' , FALSE ) ) { return 'no_login_timestamp' ; } // No last action if ( ! Parser :: _ak ( $ session , 'last_action' , FALSE ) ) { return 'no_last_action' ; } // No active status if ( ! Parser :: _ak ( $ session , 'active' , FALSE ) ) { return 'no_active' ; } // return TRUE return TRUE ; }
Check that a session is valid
@param array $session Session data to check
@return string|boolean Error
Check that a session is valid