Please may somebody help me.

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
LukeTheMajor
Forum Newbie
Posts: 1
Joined: Sun Sep 26, 2010 10:33 am
Location: United Kingdom, England

Please may somebody help me.

Post 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
robnet
Forum Commoner
Posts: 85
Joined: Mon Aug 10, 2009 8:32 am
Location: South East, UK

Re: Please may somebody help me.

Post by robnet »

I think the important bit might be happening in session.php..
Post Reply