What does HRESULT 0x80090317 (SEC_E_CONTEXT_EXPIRED) mean?

 
Previous Next
SEC_E_BAD_PKGID SEC_E_INCOMPLETE_MESSAGE

SEC_E_CONTEXT_EXPIRED

SEC_E_CONTEXT_EXPIRED signals this condition: The established security context has expired and can no longer be used. An SSPI context, ticket, or session lifetime ended before the application attempted the next protected operation. Reusing an expired context can fail even though the account and target are valid.

What to check

  • Check the context lifetime, reconnect or reauthenticate path, and any long-lived connection pooling.
  • Verify system time synchronization on both ends when Kerberos is involved.
  • Create a new authentication context instead of retrying with the expired handle.

Microsoft: SSPI status codes

Microsoft: Kerberos authentication troubleshooting


Looking for a different code? Search another status or error code.