[TYPO3-english] Check backend session in a frontend plugin

bernd wilke t3ng at bernd-wilke.net
Thu Jun 5 11:51:28 CEST 2014


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


-- 
http://www.pi-phi.de/cheatsheet.html


More information about the TYPO3-english mailing list