blob: 4d0b382cfd237cf8e3242d11db344bee085b986d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
<?
require('freeside.class.php');
$freeside = new FreesideSelfService();
$response = $freeside->logout( array(
'session_id' => $_COOKIE['session_id'],
) );
setcookie('session_id', '', time() - 3600);
$error = $response['error'];
if ( $error ) {
error_log("Logout error: $error; ignoring");
}
header('Location:index.php?error='.
urlencode( _('You have been logged out.'). ' '.
_('Thank you for using the system.')
)
);
?>
|