[TYPO3-dev] FE user logout - where?
Pero Matic
takoje at takoje.hr
Mon Dec 21 13:41:00 CET 2009
"Steffen Gebert" <steffen at steffen-gebert.de> wrote in message
news:mailman.1.1261398200.2601.typo3-dev at lists.typo3.org...
> Am 21.12.2009, 13:18 Uhr, schrieb Pero Matic <takoje at takoje.hr>:
>
>>
>> "Martin Kutschker" <masi-no at spam-typo3.org> wrote in message
>> news:mailman.1.1261397365.1310.typo3-dev at lists.typo3.org...
>>> Pero Matic schrieb:
>>>>
>>>> Ok, i found it, there is a function logoff in class.t3lib_userauth.php
>>>> but
>>>> something is strange. This function is called on every page??
>>>
>>> Every page accepts login and logoff form actions.
>>
>> I don't get it. Shouldn't this be called only when logout form is
>> submitted?
>
> Maybe the function checks, wheather exactly this is the case?
>
> Steffen
Hm. Function executes delete session query every time and on every page:
$GLOBALS['TYPO3_DB']->exec_DELETEquery(
$this->session_table,
'ses_id =
'.$GLOBALS['TYPO3_DB']->fullQuoteStr($this->id, $this->session_table).'
AND ses_name =
'.$GLOBALS['TYPO3_DB']->fullQuoteStr($this->name, $this->session_table));
when i do:
echo $this->ID i allways get different value.
More information about the TYPO3-dev
mailing list