Skip to main content
important

This is a contributors guide and NOT a user guide. Please visit these docs if you are using or evaluating SuperTokens.

Clear cookies (if present) when clearing session in header mode

Status

This is just a proposal so far, it hasn't been accepted and needs further discussion.

Status:
proposed
Deciders:
rishabhpoddar, porcellus
Proposed by:
porcellus
Created:
2022-10-25

Context and Problem Statement#

We can choose to clear or leave a cookie based session if present when logging out using header based auth

Considered Options#

  • Leave
  • Clear

Decision Outcome#

Clear, because othewise a session might get stuck (or 2 sessions might be present) after logout.

Looking for older versions of the documentation?
Which UI do you use?
Custom UI
Pre built UI