Title: Getting logged out over HTTPS when uploading profile images
Last modified: March 12, 2019

---

# Getting logged out over HTTPS when uploading profile images

 *  Resolved [nocabt](https://wordpress.org/support/users/nocabt/)
 * (@nocabt)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/getting-logged-out-over-https-when-uploading-profile-images/)
 * Our site enforces HTTPS, and users who tried to upload a new profile picture 
   are getting logged out. In Chrome Developer tools network tab, I saw that `async-
   upload.php` was getting redirected to `wp-login.php`, and the image upload was
   failing with error, “An error occured in the upload. Please try again later.”
 * Upon investigation, I found that line 219 of `user/class-user-action.php` contained:
 * `$login_user = @wp_signon($creds, false);`
 * According to the Codex:
 * [https://codex.wordpress.org/Function_Reference/wp_signon](https://codex.wordpress.org/Function_Reference/wp_signon)
 * `false` means to NOT use a secure cookie. Changing that value to `true` fixed
   the issue for us.
 * This seems like a bug that should be fixed, no? We are running WordPress 5.1 
   and WP User 5.9.3.
 * Thanks!
    -  This topic was modified 7 years, 3 months ago by [nocabt](https://wordpress.org/support/users/nocabt/).
    -  This topic was modified 7 years, 3 months ago by [nocabt](https://wordpress.org/support/users/nocabt/).
    -  This topic was modified 7 years, 3 months ago by [nocabt](https://wordpress.org/support/users/nocabt/).
    -  This topic was modified 7 years, 3 months ago by [nocabt](https://wordpress.org/support/users/nocabt/).

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [Prashant Walke](https://wordpress.org/support/users/walkeprashant/)
 * (@walkeprashant)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/getting-logged-out-over-https-when-uploading-profile-images/#post-11306112)
 * Hi,
 * Thank you very much for let us know issue as well as solution in detail.
 * We greatly appreciate your efforts and your helpful comment.
 * We will tack care issue soon and release updated version.
 *  Plugin Author [Prashant Walke](https://wordpress.org/support/users/walkeprashant/)
 * (@walkeprashant)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/getting-logged-out-over-https-when-uploading-profile-images/#post-11338380)
 * Hi,
 * We have RELEASE NEW VERSION 6.0 WP USER
 * With this release,
    - Extends the WP REST API using JSON Web Tokens Authentication as an authentication
      method. Authorize your REST API requests so that you can create, update and
      delete your data. – Documentation
    - Resolved issue : JQuery UI CSS is enqueued over HTTP, instead of HTTPS
    - **Resolved issue : Getting logged out over HTTPS when uploading profile images**
 * Check following link for more information :
    [https://wpuserplus.com/blog/release-new-version-6-0-wp-user/](https://wpuserplus.com/blog/release-new-version-6-0-wp-user/)
 * Please check and let us know in case any issue.
 * Thanks for your valuable feedback and suggesstion.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Getting logged out over HTTPS when uploading profile images’ is closed
to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-user_8e9b79.svg)
 * [WP User - Custom Registration Forms, Login and User Profile](https://wordpress.org/plugins/wp-user/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-user/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-user/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-user/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-user/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-user/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Prashant Walke](https://wordpress.org/support/users/walkeprashant/)
 * Last activity: [7 years, 3 months ago](https://wordpress.org/support/topic/getting-logged-out-over-https-when-uploading-profile-images/#post-11338380)
 * Status: resolved