Corrected logout redirection
This commit is contained in:
parent
4a4cad425b
commit
a37b863eb7
@ -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' ] ) ) {
|
||||
|
Reference in New Issue
Block a user