diff options
Diffstat (limited to 'includes/Session.php')
-rw-r--r-- | includes/Session.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/includes/Session.php b/includes/Session.php index 967b11b..7951d70 100644 --- a/includes/Session.php +++ b/includes/Session.php @@ -26,6 +26,12 @@ class Session $_SESSION['user_name'] = $user->name; } + public function sign_out() + { + session_unset(); + session_destroy(); + } + public function is_signed_in(): bool { return isset($_SESSION['signed_in']); |