[TYPO3-core] RFC: Bug 1454: cookie lifetime from the localconf will be ignored
rupert germann
rupi at gmx.li
Thu Aug 24 23:54:40 CEST 2006
On Thursday 24 August 2006 15:57, 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)
that seems to work. I tested that gc_time and auth_timeout_field are now
having the same value as TYPO3_CONF_VARS['FE']['lifetime'] which prevents the
garbage collector to clear the session if lifetime is set to a value higher
than the default of auth_timeout_field.
+1
greets
rupert
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20060824/e43c13b3/attachment.pgp
More information about the TYPO3-team-core
mailing list