• I want to be able to draw different versions of the page based on whether a user is logged in or not. I don’t want to access the db in order to do so (I want to be able to fully cache the page).

    Typically this kind of thing is done with cookies and javascript.

    In my case I’m trying to figure out how to write some conditional javascript based on the wordpress logged in cookie that is already set. Didn’t see how to do this in the Codex. Any help would be appreciated.

Viewing 1 replies (of 1 total)
  • Thread Starter jjacobo

    (@jjacobo)

    To narrow this down a bit, is it possible to access the wordpress login cookie (I’m aware there is a hash in the cookie name) just to determine if a user is logged in from my theme code?

Viewing 1 replies (of 1 total)
  • The topic ‘Conditionals Based on WordPress Login Cookie’ is closed to new replies.