[wp-trac] [WordPress Trac] #39903: is_user_logged_in() true on ajax after cookie has been deleted

WordPress Trac noreply at wordpress.org
Mon Aug 8 10:20:47 UTC 2022


#39903: is_user_logged_in() true on ajax after cookie has been deleted
--------------------------+------------------------------
 Reporter:  esemlabel     |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Users         |     Version:  4.7.2
 Severity:  major         |  Resolution:
 Keywords:  needs-patch   |     Focuses:
--------------------------+------------------------------

Comment (by shayanfp):

 Hello
 This problem is still happening (WordPress 6.0.1) and I experienced EXACLY
 like the thing that @esemlabel mentioned at first and I've also done the
 var_dump thing and saw that is correct but in ajax, it isn't.
 The code at the [comment:3 #3 comment], solved my problem and I suggest
 that you add it to WordPress core.
 Thanks.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/39903#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list