Skip to content

Commit

Permalink
Unset user data on logout
Browse files Browse the repository at this point in the history
  • Loading branch information
amirsanni committed Sep 25, 2021
1 parent 8a55959 commit 8a995dd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions application/controllers/Logout.php
Expand Up @@ -19,6 +19,7 @@ public function __construct()
public function index()
{
session_destroy();
$this->session->set_userdata([]);

redirect(base_url());
}
Expand Down

0 comments on commit 8a995dd

Please sign in to comment.