[wp-trac] [WordPress Trac] #24025: Calling is_user_logged_in() causes the "wordpress_logged_in[HASH]" cookie to be set.
WordPress Trac
noreply at wordpress.org
Wed Apr 10 14:50:12 UTC 2013
#24025: Calling is_user_logged_in() causes the "wordpress_logged_in[HASH]" cookie
to be set.
-------------------------------+------------------------------
Reporter: tomdkat | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Users | Version: 3.5.1
Severity: normal | Resolution:
Keywords: reporter-feedback |
-------------------------------+------------------------------
Comment (by tomdkat):
Thanks for the reply. Using your approach, I tried a different Wordpress
installation using the default theme and no plugins installed other than
what comes with Wordpress and what's activated by default. I was NOT able
to recreate the problem. So, I went back to the site in question and
deactivated all plugins and re-enabled the call to "is_user_logged_in()"
and encountered the problem. I made sure to clear my browser cache and
cookies before conducting all of my tests. I also captured the HTTP
headers which show the cookie being set.
{{{
http://mysite.com/mysite/
GET /mysite/ HTTP/1.1
Host: mysite.com
User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:20.0)
Gecko/20100101 Firefox/20.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
Referer: http://www.mysite.com/
Connection: keep-alive
HTTP/1.1 200 OK
Date: Wed, 10 Apr 2013 14:38:45 GMT
Server: Apache
X-Pingback: http://mysite.com/mysite/xmlrpc.php
Set-Cookie: wordpress_8d21f(snip); expires=Wed, 24-Apr-2013 14:38:45 GMT;
path=/mysite/wp-content/plugins; httponly
Set-Cookie: wordpress_8d21f(snip); expires=Wed, 24-Apr-2013 14:38:45 GMT;
path=/mysite/wp-admin; httponly
Set-Cookie: wordpress_logged_in_8d21f(snip); expires=Wed, 24-Apr-2013
14:38:45 GMT; path=/mysite/; httponly
Cache-Control: max-age=1209600
Expires: Wed, 24 Apr 2013 14:38:45 GMT
Vary: Accept-Encoding
Content-Encoding: gzip
Content-Length: 1890
Keep-Alive: timeout=5, max=75
Connection: Keep-Alive
Content-Type: text/html; charset=UTF-8
}}}
So, it's got to be something local to my theme. This bug report can be
closed. Sorry for wasting your time. :)
Thanks!
--
Ticket URL: <http://core.trac.wordpress.org/ticket/24025#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list