[TYPO3-core] RFC: Bug 1454: cookie lifetime from the localconf will be ignored

Michael Stucki michael at typo3.org
Thu Aug 24 15:57:44 CEST 2006


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bug_1454_v3.diff
Type: text/x-diff
Size: 4784 bytes
Desc: not available
Url : http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20060824/e6568542/attachment.bin 
-------------- 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/e6568542/attachment.pgp 


More information about the TYPO3-team-core mailing list