#9082 closed defect (fixed)
[patch] Remove cookie's expires param (set by Trac 0.12) when rememberme is unchecked
Reported by: | Jan Janak | Owned by: | Steffen Hoffmann |
---|---|---|---|
Priority: | normal | Component: | AccountManagerPlugin |
Severity: | normal | Keywords: | cookie lifetime |
Cc: | Trac Release: | 0.12 |
Description
There is a new configuration option in Trac 0.12 to set the lifetime of cookies. When the option is set, the internal Trac authentication module generates persistent cookies.
The Account Manager module needs to remove the "expires" parameter from the cookie when the user does not check "Remember me", otherwise the cookie will be persistent regardless of the "Remember me" checkbox state.
Attachments (1)
Change History (6)
Changed 13 years ago by
Attachment: | rememberme.patch added |
---|
comment:1 Changed 13 years ago by
Keywords: | cookie lifetime added |
---|---|
Status: | new → assigned |
Well spotted. I even had a hard time double-checking what's going on in _do_login()
of both, AcctMgr and Trac core (trac.web.auth
). Thank you for taking your time to investigate and report it here.
comment:2 Changed 13 years ago by
(In [10589]) AccountManagerPlugin: Delete cookie expiration set in Trac 0.12, refs #9082.
This has been figured out by jan@… - thanks for reporting as well as contributing the fix.
comment:3 Changed 13 years ago by
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
comment:4 Changed 13 years ago by
Beware, the fix is still pending for release to 0.3.2, and my comment in ticket #9095 applies here too, only closing with username is much better here. Thank you.
comment:5 Changed 13 years ago by
(In [10618]) AccountManagerPlugin: Publish maintenance release 0.3.2, closes #9051, #9082, #9088, #9091, #9092, #9093, #9095, #9099, #9107, #9108 and #9109.
This is an update for current stable at 0.3.1 with a number of fixes for issues reported within the last weeks.
While they will go into acct_mgr-0.4 too, current code isn't ready for release yet and will introduce a number of backwards-incompatible changes. So don't hurry for acct_mgr-0.4 right now.
Just noticed what I'd call a bug in signatures.py
and removed unreasonable
dependency on identical absolute path for successful check.
Looks like nobody else tried this by now, right? Hey folks!
Remove 'expires' from cookie when "Remember Me" is unchecked.