Skip to content

Instantly share code, notes, and snippets.

@putheakhem
Created June 6, 2019 16:15
Show Gist options
  • Select an option

  • Save putheakhem/9cd6009bad3fc4b36586b353eebefd4d to your computer and use it in GitHub Desktop.

Select an option

Save putheakhem/9cd6009bad3fc4b36586b353eebefd4d to your computer and use it in GitHub Desktop.
use to clear session from login
<?php
session_start();
unset($_SESSION["username"]);
unset($_SESSION["password"]);
echo 'You have cleaned session';
header('Refresh: 2; URL = login.php');
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment