src/Auth.php
public function getUserId() {
		if (isset($_SESSION) && isset($_SESSION[self::SESSION_FIELD_USER_ID])) {
			return $_SESSION[self::SESSION_FIELD_USER_ID];
		}
		else {
			return null;
		}
	}
public function getUserId() {
		if (isset($_SESSION) && isset($_SESSION[self::SESSION_FIELD_USER_ID])) {
			return $_SESSION[self::SESSION_FIELD_USER_ID];
		}
		else {
			return null;
		}
	}
public function getUserId ( ) { if ( isset ( $ _SESSION ) && isset ( $ _SESSION [ self :: SESSION_FIELD_USER_ID ] ) ) { return $ _SESSION [ self :: SESSION_FIELD_USER_ID ] ; } else { return null ; } }
Returns the currently signed-in user's ID by reading from the session

@return int the user ID
Returns the currently signed - in user s ID by reading from the session