View Full Version : check if logged-in
Cameron
May-19-2005, 06:42 PM
I would like to change some things in my header depending on whether or not I am logged-in. Is this possible? I imagine it would involve detecting the status of the cookie, but I'm not certain as to how to proceed. Any quick tips?
Cameron
May-22-2005, 04:52 PM
Nobody? :dunno :cry
Nimai
Jul-15-2010, 07:31 AM
Haha- oh, this is sad. I was googling for a way, through Javascript, how to test if I am logged in, and I find this unanswered thread from 5 years ago!
I want this just for doing some development tests that I don't want live for all customers to see.
I'll keep googling, but if anyone knows, please post here!
Thanks.
Nimai
Jul-15-2010, 03:24 PM
Looks like the answer is:
if (YD.hasClass(document.body, "loggedIn") )
{
...
vBulletin® v3.8.5, Copyright ©2000-2013, Jelsoft Enterprises Ltd.