After changing your password(password.php), it will call logout.php and redirect you to index.php. Problem is incomplete link to logout.php.
Updated password.php
Log in to post a comment.
Updated password.php