You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12 lines
282 B

  1. <?php
  2. session_start(); //start session
  3. //destroy session
  4. $params = session_get_cookie_params();
  5. setcookie(session_name(), '', time() - 42000,
  6. $params["path"], $params["domain"],
  7. $params["secure"], $params["httponly"]
  8. );
  9. session_destroy();
  10. header ("Location:login.php");