0
0

Corrected logout redirection

This commit is contained in:
Bryan Pedini
2019-02-26 10:07:30 +01:00
parent 4a4cad425b
commit a37b863eb7

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' ] ) ) {