Tag Info

New answers tagged

-2

We use following code: session_start(); if(isset($_SESSION['logged_in'])) { $uid=$_SESSION['userid']; } else { header("location:".BASE_HREF."login.php"); } include '../styles/templates/admincp/header.php'; include '../styles/templates/admincp/content.php'; We use above code. Please analyse it carefully. How it works: 1) At start we have to verify the ...


1

It comes down to an if statement finally somewhere in your code. Personally I've something more similar to this: if ( true === (bool) $_SESSION['user']['login'] && 0 < (int) $_SESSION['user']['id'] && time() <= ((int) $_SESSION['user']['last-activity'] + 20 * 60) && $_SERVER['REMOTE_ADDR'] === (string) ...


0

At some point, all authentication comes down to an if statement. If this user is logged in... If this user has manager privileges... If this user has admin privileges... If this user has connected from an OAuth provider... There are many methods for including (or excluding) the privileged features: Hide the things the user isn't allowed to see Don't ...


2

As you can see in the comments above you do not have to use the LESS files and the javascript to compile on every page load. You can download bootstrap with all of the css files already compiled for you. Also depending on your server environment you can employ different plugins to precompile the css files for you. I see you are using a .NET CMS so you ...



Top 50 recent answers are included