Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Logout Function #5

Open
j0nezz opened this issue Oct 22, 2020 · 0 comments
Open

Add Logout Function #5

j0nezz opened this issue Oct 22, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@j0nezz
Copy link
Contributor

j0nezz commented Oct 22, 2020

Especially for debugging, a logout function would be handy.
As the cookie is HTTP only, it can only be deleted by overwriting the cookie with max-age: 0

See https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Set-Cookie

Max-Age= Optional
Number of seconds until the cookie expires. A zero or negative number will expire the cookie immediately. If both Expires and Max-Age are set, Max-Age has precedence.

@j0nezz j0nezz added the enhancement New feature or request label Oct 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant