[Typo3] Getting current FE session

Albert van der Veen albert.van.der.veen at xs4all.nl
Tue Jul 19 12:24:12 CEST 2005


Hello list,

A plugin I'm looking into ('Secure Downloads') uses the following code to 
get the current FE session:

(in a function def):

global $TSFE;
$feSessionId = $TSFE->fe_user->id;

This works fine when I'm logged in as a FE user, but when I log out (and 
checked fe_sessions table - it's empty) it still returns the fession_id of 
the logged out user. Is this supposed to happen? I would expect it to 
return false.Thanks for your help.

Albert





More information about the TYPO3-english mailing list