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