Corrected logout redirection
This commit is contained in:
parent
4a4cad425b
commit
a37b863eb7
@ -79,7 +79,7 @@
|
|||||||
case "logout":
|
case "logout":
|
||||||
$_SESSION = array ( );
|
$_SESSION = array ( );
|
||||||
session_destroy ( );
|
session_destroy ( );
|
||||||
header ( "Location: " . substr ( $_SERVER [ 'SCRIPT_NAME' ], 0, -10 ) );
|
header ( "Location: " . substr ( $_SERVER [ 'SCRIPT_NAME' ], 0, -10 ) . "/" );
|
||||||
break;
|
break;
|
||||||
case "insert":
|
case "insert":
|
||||||
if ( ! isset ( $_SESSION [ 'user_id' ] ) ) {
|
if ( ! isset ( $_SESSION [ 'user_id' ] ) ) {
|
||||||
|
Reference in New Issue
Block a user