0
0

Corrected logout redirection

This commit is contained in:
Bryan Pedini 2019-02-26 10:07:30 +01:00
parent 4a4cad425b
commit a37b863eb7
No known key found for this signature in database
GPG Key ID: 688D440AE31B40C2

View File

@ -79,7 +79,7 @@
case "logout":
$_SESSION = array ( );
session_destroy ( );
header ( "Location: " . substr ( $_SERVER [ 'SCRIPT_NAME' ], 0, -10 ) );
header ( "Location: " . substr ( $_SERVER [ 'SCRIPT_NAME' ], 0, -10 ) . "/" );
break;
case "insert":
if ( ! isset ( $_SESSION [ 'user_id' ] ) ) {