I need a way for JavaScript (without an AJAX call) to know if the user is logged in or not. I suspect the best way to do this is to check a cookie. The ZenID is always set, regardless or whether a user is logged in or not. So far as I can tell, there is no additional cookie set on login. Can anyone confirm if there is an existing way to check login status?

If not, what is the most expedient way to have a IsLoggedIn cookie get set and unset at login/log out? ie. the best file and function to place the setcookie() calls?

Thanks!