<?php
if (session_status() === PHP_SESSION_NONE) {
session_start();
}
// For V1 you have to Pass RoleId from the User Table,
//for V2 You have to pass User ID from User Table to this Session
$_SESSION['USERROLLID'] = isset($_GET['userid']) ? $_GET['userid'] : null;
include_once('permission_class/class_permission.php');
?>
Please copy Paste above code to the all Pages or create a page to include
for texting please use below link format
https://sandslab.com/permission/?userid=2
| ID |
Module / Control Name |
Class |