Validate if github_token exists
Validate if the github_token session key exists before call it
This commit is contained in:
parent
3b196a3072
commit
3f9b678d2b
2 changed files with 5 additions and 3 deletions
|
|
@ -70,8 +70,8 @@ class SessionController extends b8\Controller
|
|||
*/
|
||||
public function logout()
|
||||
{
|
||||
unset($_SESSION['user_id']);
|
||||
unset($_SESSION['github_token']);
|
||||
$_SESSION = array();
|
||||
session_destroy();
|
||||
header('Location: /');
|
||||
die;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue