[wp-trac] [WordPress Trac] #18980: Firefox + setcookie() + WordPress = wrong cookie data
WordPress Trac
wp-trac at lists.automattic.com
Tue Oct 18 04:22:29 UTC 2011
#18980: Firefox + setcookie() + WordPress = wrong cookie data
--------------------------+----------------------
Reporter: obscurecloud | Owner:
Type: defect (bug) | Status: closed
Priority: normal | Milestone:
Component: General | Version:
Severity: normal | Resolution: invalid
Keywords: |
--------------------------+----------------------
Changes (by dd32):
* status: new => closed
* resolution: => invalid
* milestone: Awaiting Review =>
Comment:
Your problem is that Firefox is anticipating the users movements, and
automatically loading the adjacent post into memory/cache, in doing so,
it'll set any cookies which that page returns.
Ideally, any cookies with per-page information should be prefixed with the
post ID, and/or better suited to be printed as inline javascript in the
footer/headers.. doing it that way will not cause you problems.
However, this is not a WordPress bug, it's just the way your PHP interacts
with a browser, it's not something that WordPress can 'fix', nor affect..
(Other than not including the adjacent posts links), It'll happen with
*any* php/application which firefox interacts with which doesn't use
unique cookie names.
Closing as invalid due to that..
--
Ticket URL: <http://core.trac.wordpress.org/ticket/18980#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list