big update : session authentification guard, some exemaples and docs

This commit is contained in:
Emmanuel ROY 2021-02-17 13:39:05 +01:00
commit 5be76d38f6
30 changed files with 163 additions and 60 deletions

View file

@ -35,7 +35,7 @@ class Session
public static function authentification()
{
self::sessionStart();
$_SESSION['user_login'] = 'root';
$_SESSION['user_login'] = 'anonymous';
$_SESSION['acl_admin'] = 0;
}
@ -46,7 +46,7 @@ class Session
require_once CONFIG_PATH . DIRECTORY_SEPARATOR . 'cas-authentification-config.php';
// Enable debugging
\phpCAS::setLogger();
\phpCAS::setDebug(LOG_PATH.'/cas.log');
// Enable verbose error messages. Disable in production!
\phpCAS::setVerbose(true);