Subversion Repositories computer_asset_manager_v1

Rev

Rev 1 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
1 rodolico 1
<?php
2
   include_once("header.php");
3
   session_start();
56 rodolico 4
   // kludge to make sure HTML root is prepended to our redirect
5
   $LOGIN_PAGE = $_SERVER['PHP_SELF'];
1 rodolico 6
   $_SESSION = array();
7
   if (isset($_COOKIE[session_name()])) {
8
      setcookie(session_name(), '', time() - 42000, '/' );
9
   }
10
   session_destroy;
56 rodolico 11
   unset( $_SESSION['user'] );
12
   header( "Location: $LOGIN_PAGE");
13
?>