ERROR_BAD_LOGON_SESSION_STATE - 1365 (0x555)

The logon session is not in a state that is consistent with the requested operation.

Updated: Feb 21, 2026

Technical Meaning

The error code ERROR_BAD_LOGON_SESSION_STATE with the numeric value 1365 and hexadecimal representation 0x555 indicates that a requested operation cannot be performed because the logon session is not in an appropriate state. This error typically arises when there is a mismatch between the current state of the logon session and the required conditions for executing a specific action.

Error Details

This error can occur in various contexts, such as attempting to access resources or perform operations that require a valid and active logon session. The exact nature of the operation that triggers this error depends on the application or API being used.

Usage Context

The ERROR_BAD_LOGON_SESSION_STATE is commonly encountered when dealing with authentication mechanisms in Windows, particularly during logon sessions managed by the operating system. It can be relevant to applications and services that interact with user credentials and session states.

Developer Interpretation

Developers should interpret this error as an indication that the current state of the logon session does not meet the prerequisites for the requested operation. This could mean that the session has been terminated, is in a transitional state, or lacks necessary permissions to perform the required action. Developers are advised to handle such errors by validating the logon session state before performing critical operations.

Related Errors

  • ERROR_LOGON_SESSION_COLLISION: Occurs when there is an unexpected collision with another logon session.
  • ERROR_LOGON_SESSION_EXISTS: Indicates that a logon session already exists for the specified user and domain combination.
  • ERROR_INVALID_PARAMETER: May be returned if one of the parameters passed to the API call is invalid.

FAQ

Q: What does ERROR_BAD_LOGON_SESSION_STATE mean?

A: It indicates that the current state of the logon session is not suitable for performing a requested operation. This can occur due to various reasons such as an inactive or terminated session.

Q: How should I handle this error in my application?

A: Validate the logon session state before performing operations that require it, and ensure that all parameters are correctly set.

Summary

The ERROR_BAD_LOGON_SESSION_STATE is a generic error code indicating an inconsistency between the current state of a logon session and the required conditions for executing a specific operation. Developers should handle this error by ensuring proper validation of the logon session state before performing critical operations.