Set Bodhi sessions to expire and to only send cookies over TLS.
Signed-off-by: Randy Barlow <randy@electronsweatshop.com>
This commit is contained in:
parent
470b9186c3
commit
9a47520467
2 changed files with 8 additions and 0 deletions
|
@ -448,6 +448,10 @@ session.data_dir = /var/cache/bodhi/sessions/data
|
|||
session.lock_dir = /var/cache/bodhi/sessions/lock
|
||||
session.key = {{ bodhi2SessionKey }}
|
||||
session.cookie_on_exception = true
|
||||
# Tell the browser to only send the cookie over TLS
|
||||
session.secure = true
|
||||
# Create a cookie that is only valid for one day
|
||||
session.timeout = 86400
|
||||
cache.regions = default_term, second, short_term, long_term
|
||||
cache.type = memory
|
||||
cache.second.expire = 1
|
||||
|
|
|
@ -418,6 +418,10 @@ session.data_dir = /var/cache/bodhi/sessions/data
|
|||
session.lock_dir = /var/cache/bodhi/sessions/lock
|
||||
session.key = {{ bodhi2SessionKeySTG }}
|
||||
session.cookie_on_exception = true
|
||||
# Tell the browser to only send the cookie over TLS
|
||||
session.secure = true
|
||||
# Create a cookie that is only valid for one day
|
||||
session.timeout = 86400
|
||||
cache.regions = default_term, second, short_term, long_term
|
||||
cache.type = memory
|
||||
cache.second.expire = 1
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue