Jump to content

Checking sessions


bullbreed

Recommended Posts

Yes I think so.

 

I have 3 users.

Admin

User

Guest

 

When I have a page that is Admin only I write

if(!$session->isAdmin()){
   header("Status: 200");
   header("Location: index.php?denied=true");

 

But I have one that is admin and user and havent done this before so was wondering if I had written in correctly and in the right order

 

Link to comment
https://forums.phpfreaks.com/topic/190033-checking-sessions/#findComment-1002583
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.