Session using cookie

This commit is contained in:
Ibnu Maksum
2024-02-12 09:45:44 +07:00
parent 66432eda56
commit 9543ee6e34
7 changed files with 80 additions and 13 deletions

View File

@ -6,5 +6,7 @@
run_hook('customer_logout'); #HOOK
if (session_status() == PHP_SESSION_NONE) session_start();
Admin::removeCookie();
User::removeCookie();
session_destroy();
header('location: index.php');