[TYPO3-dev] Problems with permalogin

Steffen Kamper steffen at sk-typo3.de
Tue Oct 9 21:14:41 CEST 2007


"Steffen Kamper" <steffen at sk-typo3.de> schrieb im Newsbeitrag 
news:mailman.1.1191952683.9203.typo3-dev at lists.netfielders.de...
>
> "Ingmar Schlecht" <ingmar at typo3.org> schrieb im Newsbeitrag 
> news:mailman.1.1191752796.14707.typo3-dev at lists.netfielders.de...
>> Ingmar Schlecht schrieb:
>>> Here you go:
>>> http://svn.t3.digitaldistrict.de/cgi-bin/trac.cgi/changeset/5229
>>
>> By the way, most of the changes to t3lib_userauth were only necessary in
>> order to make the class extendible from tslib_feuserauth. So the code
>> that actually deals with permalogin is all in tslib_feuserauth. If you
>> find out what goes wrong in your case, please report back here so we can
>>  fix it if it was a bug.
>>
>> cheers
>> Ingmar
>>
>> -- 
>> Ingmar Schlecht
>> TYPO3 Association Active Member
>
> ok, i do.
> Here are some intersting results.
>
> Login as fe_user, this->lifetime:3600 (this is lifetime for be_user)
> Login at 18:56, Cookie is written with following:
> Expires Tue, 09 Oct 2007 17:56:28 GMT (1 hour behind ???)
> (i wonder why 1 hour back insead of one hour forward)

wrong (my fault) - it's always 2 hours back (+3600-7200)


>
> now, after logged in the cookie is refreshed everytime still with lifetime 
> 3600
> though $TYPO3_CONF_VARS['FE']['lifetime'] = '3600*24*7'
>
> at least i looked at tslib_fe, and there i found that:
> $this->fe_user->lifetime = 
> intval($this->TYPO3_CONF_VARS['FE']['lifetime']);
>
> with '3600*24*7' as suggestion it will calculate 3600 all the time, so 
> this is a bit misleading, may be installtool should suggest
> '3600*24*7' (=604800)  or 604800 (3600*24*7)
>
> Ok, this was my misunderstanding of this feature. So i changed the value 
> to 604800. After relogin my Cookie is written with
> Expires Tue, 16 Oct 2007 17:44:05 GMT
> where login time was 19:44 - now +14 days - 2hours difference now, german 
> timezone is switched at 28 Oct.
>
> So two things:
> - description in install tool is misleading
> - there is a difference of 1 (2) hour(s) where i don't know why.

2 hours. This must be the difference to UTC (german summertime is UTC +2) so 
it is recalculated to UTC.
Does anybody knows where ?

vg  Steffen

>
> vg  Steffen
>
>
>
>
>
> 






More information about the TYPO3-dev mailing list