Jump to content

If logged in....


phpwiz

Recommended Posts

Hi, i was wondering how i could make it so if the user is logged into my website and they try to go to the login page it says an error message like: Sorry you have to be logged out to see this page.

 

and this is what i have so far.

 

if ()
{

}
else
{
echo "Sorry, you have to be logged out to view this page. <a href='logout.php'>Logout?</a>";
}

 

but i dont know what to put in the if statement.

Link to comment
https://forums.phpfreaks.com/topic/171650-if-logged-in/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.