View Full Version : Hiding an area if session exists

12-27-2007, 12:28 AM

How do you hide an area of a page if a session exists? e.g. on home page if the user is logged in the login box does not show.

Thanks :)

12-27-2007, 12:33 AM
// login box
// else
Change logged_in to your session variable you want to compare. You could also use session_is_registered() (http://php.net/session_is_registered), but that won't check the value, just see if the variable has been set.

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum