Login Timeout #1695

Closed
opened 2025-12-29 16:34:28 +01:00 by adam · 3 comments
Owner

Originally created by @robertlynch3 on GitHub (Apr 23, 2018).

Issue type

[ X] Feature request
[ ] Bug report
[ ] Documentation

Environment

  • Python version:
  • NetBox version:

Description

Not sure if this is a feature request, or if it is more of a question, but is it possible to timeout a login session. Currently every time I go to the web gui, I am not required to log in (because I logged in already). Could I make it so after an hour, I am required to log back in?

Originally created by @robertlynch3 on GitHub (Apr 23, 2018). <!-- Before opening a new issue, please search through the existing issues to see if your topic has already been addressed. Note that you may need to remove the "is:open" filter from the search bar to include closed issues. Check the appropriate type for your issue below by placing an x between the brackets. For assistance with installation issues, or for any other issues other than those listed below, please raise your topic for discussion on our mailing list: https://groups.google.com/forum/#!forum/netbox-discuss Please note that issues which do not fall under any of the below categories will be closed. Due to an excessive backlog of feature requests, we are not currently accepting any proposals which extend NetBox's feature scope. Do not prepend any sort of tag to your issue's title. An administrator will review your issue and assign labels as appropriate. ---> ### Issue type [ X] Feature request <!-- An enhancement of existing functionality --> [ ] Bug report <!-- Unexpected or erroneous behavior --> [ ] Documentation <!-- A modification to the documentation --> <!-- Please describe the environment in which you are running NetBox. (Be sure to verify that you are running the latest stable release of NetBox before submitting a bug report.) If you are submitting a bug report and have made any changes to the code base, please first validate that your bug can be recreated while running an official release. --> ### Environment * Python version: <!-- Example: 3.5.4 --> * NetBox version: <!-- Example: 2.1.3 --> <!-- BUG REPORTS must include: * A list of the steps needed for someone else to reproduce the bug * A description of the expected and observed behavior * Any relevant error messages (screenshots may also help) FEATURE REQUESTS must include: * A detailed description of the proposed functionality * A use case for the new feature * A rough description of any necessary changes to the database schema * Any relevant third-party libraries which would be needed --> ### Description Not sure if this is a feature request, or if it is more of a question, but is it possible to timeout a login session. Currently every time I go to the web gui, I am not required to log in (because I logged in already). Could I make it so after an hour, I am required to log back in?
adam added the status: acceptedtype: feature labels 2025-12-29 16:34:28 +01:00
adam closed this issue 2025-12-29 16:34:29 +01:00
Author
Owner

@jeremystretch commented on GitHub (May 4, 2018):

Django has a SESSION_COOKIE_AGE setting that defaults to two weeks. We can implement a LOGIN_TIMEOUT or similarly-named configuration setting to influence this. The user should be able to set this variable to zero to limit the login to the life of the browser session.

@jeremystretch commented on GitHub (May 4, 2018): Django has a [`SESSION_COOKIE_AGE` setting](https://docs.djangoproject.com/en/2.0/ref/settings/#session-cookie-age) that defaults to two weeks. We can implement a `LOGIN_TIMEOUT` or similarly-named configuration setting to influence this. The user should be able to set this variable to zero to limit the login to the life of the browser session.
Author
Owner

@Schillers commented on GitHub (Jun 18, 2018):

@jeremystretch, Did this ever get followed up at all or is it still a Work in Progress?

@Schillers commented on GitHub (Jun 18, 2018): @jeremystretch, Did this ever get followed up at all or is it still a Work in Progress?
Author
Owner

@jeremystretch commented on GitHub (Nov 14, 2018):

This has been implemented in develop-2.5. Note that setting LOGIN_TIMEOUT = 0 will not work; some positive integer (or the default value) is required.

@jeremystretch commented on GitHub (Nov 14, 2018): This has been implemented in `develop-2.5`. Note that setting `LOGIN_TIMEOUT = 0` will **not** work; some positive integer (or the default value) is required.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#1695