Skip to content

Instantly share code, notes, and snippets.

@INDIAN2020
Created May 13, 2013 07:03
Show Gist options
  • Select an option

  • Save INDIAN2020/5566607 to your computer and use it in GitHub Desktop.

Select an option

Save INDIAN2020/5566607 to your computer and use it in GitHub Desktop.
php: session login
session_start();
if ( !isset($_SESSION['logged-in']) || $_SESSION['logged-in'] !== true) {
header('Location: login.php');
exit;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment