def METHOD_NAME() -> Response:
    """
    Get the information about the current session.
    :return: A JSON response with the session ID and validity.
    """
    verify_logged_in()
    return json_response(
        {"sessionId": current_session_id(), "valid": has_valid_session()}
    )