Page 1 of 1

Please may somebody help me.

Posted: Sun Sep 26, 2010 10:41 am
by LukeTheMajor
Hey,
Iv'e just added a login script to my website,
and im having a bit of trouble with something
i want to add a bit of code on to a page so users have to be logged in to view,

Here is the code :

Code: Select all

<?
include("include/session.php");

if($session->logged_in)
{
?>
HTML CODING HERE
<?
}
else
{
die"Your Aren't Logged In";
}

But for some reason its not working please may somebody help me :)

Regards,
Luke

Feel Free To Contact Me
MSN: Luke.brown2008@Hotmail.com
Email : Luke.brown2008@Gmail.com

Re: Please may somebody help me.

Posted: Sun Sep 26, 2010 10:50 am
by robnet
I think the important bit might be happening in session.php..