[TYPO3-english] Check backend session in a frontend plugin
Iban
cardona at opus5.info
Thu Jun 5 12:07:33 CEST 2014
Hello,
Thank for your answer.
I have a backend session and that varable is empty. I'm using an eID...
maybe should I init some backend variables before?
Thank you very much,
Iban.
El 05/06/2014 11:51, bernd wilke escribió:
> Am 05.06.14 10:27, schrieb Iban:
>> Hello!
>>
>> Do you know how to check if I have got a backend session inside a
>> frontend plugin?
>>
>
> you can look if a variable with data for the be_user exists.
>
> $GLOBALS['BE_USER']->user
>
> each valid user will have a uid and an username
>
> if ($GLOBALS['BE_USER']->user['uid']) {...}
>
>
> bernd
>
>
More information about the TYPO3-english
mailing list