-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathbase_logout.php
More file actions
25 lines (24 loc) · 786 Bytes
/
base_logout.php
File metadata and controls
25 lines (24 loc) · 786 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<?php
// Basic Analysis and Security Engine (BASE)
// Copyright (C) 2019-2023 Nathan Gibbs
// Copyright (C) 2004 BASE Project Team
// Copyright (C) 2000 Carnegie Mellon University
//
// For license info: See the file 'base_main.php'
//
// Project Lead: Nathan Gibbs
// Built upon work by: Kevin Johnson & the BASE Project Team
// Roman Danyliw <rdd@cert.org>, <roman@danyliw.com>
//
// Purpose: Logout -- axe the cookie, redir to index.php.
//
// Author(s): Nathan Gibbs
// Kevin Johnson
$sc = DIRECTORY_SEPARATOR;
require_once("includes$sc" . 'base_krnl.php');
if( !headers_sent() ){
setcookie('BASERole', '', 1);
setcookie(session_name(), session_id(), 1);
HTTP_header("Location: $BASE_urlpath/index.php");
}
?>