title: Wordpress when password updated user is logout
body: <p>I have change password at front-end and i m using wp_user_update function,but when user change password it have been log out. the problem is that my old cookies is not updated,so how to update password without log out.have any idea?.. </p>
  
  <pre><code>global $wpdb, $current_user;
  
  $user_id =  $current_user-&gt;ID;
  wp_update_user(array('ID'=&gt;$user_id,'user_pass'=&gt;$_POST['user_pass']));
  </code></pre>