We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
There should be a way to set max age for cookies.
Currently you can't change cookie max age.
We could add cookie_max_age() function that accepts u32/usize/Duration as argument to SessionMiddlewareBuilder.
cookie_max_age()
SessionMiddlewareBuilder
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.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
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 toSessionMiddlewareBuilder
.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.
The text was updated successfully, but these errors were encountered: