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

Session: add cookie max age #323

Open
LinuxHeki opened this issue Apr 26, 2023 · 0 comments
Open

Session: add cookie max age #323

LinuxHeki opened this issue Apr 26, 2023 · 0 comments

Comments

@LinuxHeki
Copy link
Contributor

LinuxHeki commented Apr 26, 2023

Expected Behavior

There should be a way to set max age for cookies.

Current Behavior

Currently you can't change cookie max age.

Possible Solution

We could add cookie_max_age() function that accepts u32/usize/Duration as argument to SessionMiddlewareBuilder.

Context

This could allow to preserve session after browser is closed, and for example users won't have to log in every time they open a browser.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant