Currently a logged in user on my site will be identifed by php session variables. But now i'm working on a ajax login and was wondering what's the best way to go about showing a logged in status using javascript? I was thinking about creating a cookie on the client side for this but then i'd have the session + a cookie and that doesn't seem like the best way to go about it. I also thought to go to cookies altogether and get rid of the session so i would have only one location to get info from.

anyone know of "the way" to go about this?