[TYPO3-dev] FE user logout - where?
Peter Russ
peter.russ at 4many.net
Mon Dec 21 13:46:40 CET 2009
--- Original Nachricht ---
Absender: Pero Matic
Datum: 21.12.2009 13:41:
> "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.
There will always be a session IF user accepted cookies, also for logout
users ;-)
The question for me is: how did you implement your login extension ...
Maybe there the error comes from.
Peter.
--
loans that change lives http://www.kiva.org
_____________________________
uon GbR
http://www.uon.li
http://www.xing.com/profile/Peter_Russ
More information about the TYPO3-dev
mailing list