- Updated authorization checks in product management, product attributes, configurations, software, and user management files to use 'permissions' for consistency. - Ensured that all relevant pages correctly check user permissions for read, update, delete, and create actions. - Adjusted session variable references to align with the new permissions structure across various modules.
15 lines
265 B
PHP
15 lines
265 B
PHP
<?php
|
|
// Start sessions
|
|
session_start();
|
|
|
|
$_SESSION = array();
|
|
|
|
// Destroy all session related to user
|
|
$_SESSION['authorization']['permissions'] = '';
|
|
session_unset();
|
|
session_destroy();
|
|
|
|
// Redirect to login page
|
|
header('location: login.php');
|
|
exit;
|
|
?>
|