[TYPO3-dev] GLOBALS[TSFE] is not available

Dmitry Dulepov dmitry at typo3.org
Wed Feb 7 14:22:57 CET 2007


Hi!

Karol Dabrowski wrote:
> Hello I have a problem - i'm reading in my script
> $GLOBALS['TSFE']->fe_user->user['username'] variable but it is  equal
> to ''.

It means that FE user is not logged in. This is 99% of use cases.

> I dont know why - some scripts - like some extensions classes - can
> see this variable and read it to know front end user name - and other
> ones cannot see them. I need it because I need to know actually
> logged frontend user but I don't know how to make it able for me.
> Anyone has some suggestions how to make it possible? Thanks KD

Are you sure you are trying to do it in FE and not in BE?

-- 
Dmitry Dulepov

Web: http://typo3bloke.net/
Skype: callto:liels_bugs

"It is our choices, that show what we truly are,
far more than our abilities." (A.P.W.B.D.)




More information about the TYPO3-dev mailing list