Mega Code Archive

 
Categories / Php / Cookie Session
 

Still Logged In with cookie

<?php   $auth = $_COOKIE['auth'];   header( "Cache-Control:no-cache" );    if( ! $auth == "ok" )    {     header("Location:login.php" );     exit();   } ?> <html>  <head>   <title>Still Logged In</title>  </head>  <body>   You are still logged in ...  </body> </html>