Skip to content
  • P
    Projects
  • G
    Groups
  • S
    Snippets
  • Help

sopham / todolist

  • This project
    • Loading...
  • Sign in
Go to a project
  • Project
  • Repository
  • Issues 0
  • Merge Requests 0
  • Pipelines
  • Wiki
  • Snippets
  • Members
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Branches
  • Tags
  • Contributors
  • Graph
  • Compare
  • Charts
Switch branch/tag
  • todolist
  • logout.php
Find file
BlameHistoryPermalink
  • sopham's avatar
    comment, delete unnescessary code · 142cce75
    sopham committed 6 years ago
    142cce75
logout.php 364 Bytes
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
<?php
session_start();

//unset all the session variables
session_unset();

//destroy session
session_destroy();

//delete the session cookie
$params = session_get_cookie_params();
setcookie(session_name(), '', 0, $params['path'], $params['domain'], $params['secure'], isset($params['httponly']));

//redirect to login page
header("Location: login_page.html");
?>