Subversion Repositories computer_asset_manager_v1

Rev

Rev 1 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

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