check if logged-in

CameronCameron Registered Users Posts: 745 Major grins
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?

Comments

  • CameronCameron Registered Users Posts: 745 Major grins
    edited May 22, 2005
    Nobody? ne_nau.gif :cry
  • NimaiNimai Registered Users Posts: 564 Major grins
    edited July 15, 2010
    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.
  • NimaiNimai Registered Users Posts: 564 Major grins
    edited July 15, 2010
    Looks like the answer is:
    if (YD.hasClass(document.body, "loggedIn") )
      {
        ...
    
Sign In or Register to comment.