[SOLVED]How to check if user is logged in or not?

There is a global variable $isLoggedIn but when I try to dump like this 

 {$sUserLoggedIn|@var\_dump}

it’s always false!

 

If nothing changed meanwhile, that variable isn’t available everywhere.

Here is a plugin to change that: Using global variables in templates

 

No, I figured it out…there is another global variable 

 $userLoggedIn

and it works perfectly fine…

I tested it like this: 

 {$userLoggedIn|@var\_dump}

 

But now i don’t know what is this variable: 

 $sUserLoggedIn

 

notice the “s” in front