I've written a custom front-end change password page. At the top of the page I have this snippet of code:
<?php if ( !is_user_logged_in() ) { auth_redirect(); } ?>
After the request is processed and the user's password is changed the page draws, but the next page view triggers is_user_logged_in()
to return false and it sends the user to the login page... After looking at the code for is_user_logged_in()
I'm guessing that something gets invalidated in the user's cookie, but I have no idea what.
Any pointers?