Jump to content

[SOLVED] what IF function do i use for this ?


jamesxg1

Recommended Posts

i need to make a if function that will disallow the page to be viewed if the $_SESSION['logged'] does not exist.

 

anyone have any idea's ?

 

if (isset($_SESSION['logged'])) {
   display page
}
else {
   do nothing
}

 

 

----

edit: what he said!  ^

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.