Title: wordpress_sec_ cookie problem
Last modified: August 30, 2016

---

# wordpress_sec_ cookie problem

 *  [Tii](https://wordpress.org/support/users/tii/)
 * (@tii)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/wordpress_sec_-cookie-problem/)
 * Hello,
    Sometimes, I cannot login to wordpress and I don’t have an error message.
   Deleting the cookie from the (chrome) inspector doesn’t sole the problem BUT,
   if I open the “Clear browsing data” and delete the wordpress_sec_XXXX cookies
   manually, then I can login again !
 * It seems like WordPress refuses to log me in because of the wordpress_sec_ cookies.
 * – My website is in HTTPS
    -It can happens randomly but I can reproduce the same
   behaviour by login on a local environment with the domain pointing to it in my
   host file, then change my host file and try to login then from the productive
   environment. – I tried to deactivate every plugins and it doesn’t change anything.–
   I tried to force the COOKIEPATH, COOKIE_DOMAIN, ADMIN_COOKIE_PATH, SITECOOKIEPATH
   but no results neither. – I search the forum and could find similar behaviour
   but the solutions never fixed my problem – forcing a wp_clear_auth_cookie() before
   login does not fix the problem. – I added the FORCE_SSL_LOGIN and FORCE_SSL_ADMIN
   as true did not change anything – Manually deleting the two wordpress_sec cookies
   fixes the problem
 * Anyone has any idea ?
 * thank you,

The topic ‘wordpress_sec_ cookie problem’ is closed to new replies.

## Tags

 * [cookie](https://wordpress.org/support/topic-tag/cookie/)
 * [login](https://wordpress.org/support/topic-tag/login/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [Tii](https://wordpress.org/support/users/tii/)
 * Last activity: [10 years, 6 months ago](https://wordpress.org/support/topic/wordpress_sec_-cookie-problem/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
