Skip to content

Commit

Permalink
Updated session
Browse files Browse the repository at this point in the history
  • Loading branch information
FarhanShares committed Nov 5, 2020
1 parent 317e131 commit fe69373
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions partials/header.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@
<li class="lg:mx-2 w-full lg:w-auto shadow lg:shadow-none">
<a href="/profile.php" class="p-4 block hover:text-red-500">Profile</a>
</li>
<!-- <li class="lg:mx-2 w-full lg:w-auto shadow lg:shadow-none">
<li class="lg:mx-2 w-full lg:w-auto shadow lg:shadow-none">
<a href="/signout.php" class="p-4 block hover:text-red-500">Logout</a>
</li> -->
</li>
</ul>
</div>
Expand Down
4 changes: 2 additions & 2 deletions signout.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
redirectIfNotAuthenticated();

unset($_COOKIE['user_id']);
unset($_SESSION['user_id']);

session_unset();
session_destroy();
// var_dump(isAuthenticated());
// tryRememberingUser();
// var_dump(isAuthenticated());
Expand Down

0 comments on commit fe69373

Please sign in to comment.