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

Set user cookie expiration duration #313

Closed
jtprof opened this issue Jun 18, 2020 · 3 comments
Closed

Set user cookie expiration duration #313

jtprof opened this issue Jun 18, 2020 · 3 comments

Comments

@jtprof
Copy link
Contributor

jtprof commented Jun 18, 2020

Hi Iaroslav,

Could you please advice way how to change 'username' cookie expires duration?
One mount which is set by default is too long.

Thank you in advance.

@bugy
Copy link
Owner

bugy commented Jun 18, 2020

Hi, you mean 30 days expiration?
Unfortunately it's not configurable at the moment

You can change the code in src/auth/tornado_auth.py:73
request_handler.set_secure_cookie('username', username, expires_days = 7)

@bugy bugy changed the title How to change 'username' cookie Set user cookie expiration duration Jun 18, 2020
@bugy bugy added the feature label Jun 18, 2020
@jtprof
Copy link
Contributor Author

jtprof commented Jun 18, 2020

Thank you.

@bugy
Copy link
Owner

bugy commented Aug 9, 2020

Fixed in #316

@bugy bugy added the resolved label Aug 9, 2020
@bugy bugy added this to the 1.16.0 milestone Aug 9, 2020
@bugy bugy closed this as completed Nov 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants