try using
if(isset($_SESSION['logged']) && $_SESSION['logged']){
If the variable is not set at all, php will not know what to do with it. Methinks.
diafol
Rhod Gilbert Fan (ardav)
7,792 posts since Oct 2006
Reputation Points: 1,170
Solved Threads: 1,080
evstevemd
Senior Poster
3,713 posts since Jun 2007
Reputation Points: 462
Solved Threads: 392
try rebooting server may be (if local). Cant see anything big with code unless you have loops in your "secret" code !
evstevemd
Senior Poster
3,713 posts since Jun 2007
Reputation Points: 462
Solved Threads: 392
It seems there is issue with server you are using. I would suggest you install WAMP/XAMPP to avoid the issue!
evstevemd
Senior Poster
3,713 posts since Jun 2007
Reputation Points: 462
Solved Threads: 392