Bug 976272 - [RFE] openstack-horizon: no session timeout in horizon
Summary: [RFE] openstack-horizon: no session timeout in horizon
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: python-django-horizon
Version: 4.0
Hardware: x86_64
OS: Linux
medium
high
Target Milestone: Upstream M2
: 4.0
Assignee: Matthias Runge
QA Contact: Nir Magnezi
URL:
Whiteboard:
: 983097 (view as bug list)
Depends On:
Blocks: RHOS40RFE
TreeView+ depends on / blocked
 
Reported: 2013-06-20 09:16 UTC by Haim
Modified: 2020-04-15 14:05 UTC (History)
9 users (show)

Fixed In Version: python-django-horizon-2013.2-0.4.1b2.el6ost
Doc Type: Enhancement
Doc Text:
With this update, Dashboard users are automatically logged out of a period of inactivity. This period is set to 30 minutes by default.
Clone Of:
Environment:
Last Closed: 2013-12-20 00:07:11 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Launchpad 1118441 0 None None None Never
Red Hat Product Errata RHEA-2013:1859 0 normal SHIPPED_LIVE Red Hat Enterprise Linux OpenStack Platform Enhancement Advisory 2013-12-21 00:01:48 UTC

Description Haim 2013-06-20 09:16:25 UTC
Description of problem:

no session timeout in horizon, browser was opened for day (when I disconnected from network during that time).


Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1. login to horizon
2. leave browser opened for 24 hours
3. open new tab

Actual results:

session log-out in case of no activity after 30 minutes.


Expected results:


Additional info:

Comment 1 Matthias Runge 2013-06-20 09:59:23 UTC
thank you for this report.

However, we're using session cookies, which expire at the end of the session, and not using time based cookies. 

From django docs:

If SESSION_EXPIRE_AT_BROWSER_CLOSE is set to True, Django will use browser-length cookies – cookies that expire as soon as the user closes his or her browser. Use this if you want people to have to log in every time they open a browser. As far as I understand it. they're mutually exclusive with persistent cookies, which can have a time-out; 

Persistent cookies will be stored on clients computer whereas session cookies stay in memory.

Comment 2 Matthias Runge 2013-07-26 07:43:23 UTC
The feature is implemented in Havana-2.
How to test:

in the settings file, e.g in /etc/openstack-dashboard/local_settings define
SESSION_TIMEOUT=1800 (in secs), wait 1800 secs and do a next action in the browser window. 
What you should see is a redirect/immediate logout.

Comment 3 Julie Pichon 2013-07-26 08:17:50 UTC
*** Bug 983097 has been marked as a duplicate of this bug. ***

Comment 6 Nir Magnezi 2013-11-25 14:48:42 UTC
Verified NVR: python-django-horizon-2013.2-5.el6ost.noarch

Tested OK.

Comment 9 errata-xmlrpc 2013-12-20 00:07:11 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHEA-2013-1859.html


Note You need to log in before you can comment on or make changes to this bug.