[TYPO3-core] RFC: Bug 1454: cookie lifetime from the localconf will be ignored
Ingmar Schlecht
ingmar at typo3.org
Fri Aug 25 12:04:25 CEST 2006
Hi Stucki,
good work!
I tested it and it worked as expected: +1.
cheers
Ingmar
Michael Stucki wrote:
> This is a SVN patch request.
>
> Problem:
> $TYPO3_CONF_VARS[FE][lifetime] is not treated correctly because the session is
> cleared after 3600 seconds independent of this value (it affects the cookie
> lifetime only).
>
> Solution:
> (Copied my comment from the bugtracker)
>
> I've made another attempt to fix this problem, however this is completely
> untested yet:
>
> - gc_time in class.t3lib_userauth has been turned from hours into seconds
> (more logical because all other fields use seconds too)
>
> - The default of gc_time has been set from 24 (hours) to 0 which now means:
> use value of $this->auth_timeout_field or 1 day (like before) if that is not
> set.
>
> - Do the same like your patch, but use method name "start" instead of the
> constructor (make sure that start() is called after this one)
>
> Branches:
> Trunk only
>
> Comments:
> Thanks to Dietrich Heise and Jeff Segars.
>
> Bugtracker reference:
> http://bugs.typo3.org/view.php?id=1454
>
> - michael
More information about the TYPO3-team-core
mailing list