WordPress.org

Ready to get started?Download WordPress

Forums

Cookie Trouble (4 posts)

  1. denyerec
    Member
    Posted 10 years ago #

    Hi there,
    Under WP .72 I used a cookie to set style information as part of a home-brew style switcher, however since upgrading my setcookie() is failling as the page headers are already over and done with.
    I have reason to believe that the new wp-blog-header.php is sending out some output somewhere and thus preventing me from setting the cookie after the header has been included.
    Anyone got any ideas if this is the case?

  2. Matt Mullenweg
    Troublemaker
    Posted 10 years ago #

    What error message does it give you?

  3. denyerec
    Member
    Posted 10 years ago #

    The good old "setcookie() canot run, headers have already been sent out" message, which is what you're destined to receive if content has been transmitted prior to a header request.

  4. Matt Mullenweg
    Troublemaker
    Posted 10 years ago #

    Okay, does it give you line numbers with that? Are you running the latest version of WP?

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.