Disable Cookies in WordPress?

2 replies
I am having major problems with one particular wordpress installation because of the cookies it is setting... I need to disable them - anybody know how?

Ian
#cookies #disable #wordpress
  • Profile picture of the author stma
    I don't think you really want it to stop sending cookies...... assuming maybe you are having subdomain issues or your blog is conflicting with other pages?

    In wp-config.php you have this line: (or close to it)

    define('COOKIE_DOMAIN', 'www.yourdomain.com');


    You can change the url to your subdomain or the static url in the front and see if that helps.
    {{ DiscussionBoard.errors[2114702].message }}
  • Profile picture of the author Harrison Ortega
    Not sure if you'll be able to disable the cookies on wordpress as there are many core files that rely on it. Maybe you can set the cookies to expire in 1 second instead of the two weeks default on WP. This link may help you out: planetmike.com/2008/06/30/how-to-make-the-wordpress-login-cookie-last-longer-than-two-weeks/.
    Signature
    NJ web design / NJ Web Designer. MY Wordpress portfolio. 10 years of HTML/CSS - 6 years developing professional Wordpress websites. Currently not available for services.
    {{ DiscussionBoard.errors[2119549].message }}

Trending Topics