Hello All,
I’m trying for a long time now to build a cms handling users/roles/pages etc…
I thing I am on a very good stage and I have managed to finally do it but now I am on the stage to restrict page access/permissions based on users roles.
This brought me back a few steps back because I have to build in php all the needed SC I have already made.
Again, that’s fine but I am stuck on zero point because I can’t retrieve the user ID…
I have tried already:
- security provider name “scname”.
- <?php echo $_SESSION['scnameId'] ?>
Not working… Getting:
Notice : Undefined variable: _SESSION in xxxxxxxxxxxx\index.php on line 49
Notice : Trying to access array offset on value of type null in xxxxxxxxxxx\index.php on line 49
I cannot figure what I am doing wrong…
Please, somebody have a suggestion?
Thanks in advance
Wappler 5.5.1
PHP, mySQL