[wp-trac] [WordPress Trac] #49258: Improper Session Termination

WordPress Trac noreply at wordpress.org
Fri Aug 7 02:56:23 UTC 2020


#49258: Improper Session Termination
--------------------------+------------------------------
 Reporter:  vishal05      |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Users         |     Version:  5.1.1
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:  administration
--------------------------+------------------------------

Comment (by khag7):

 > The Clear-Site-Data header clears browsing data (cookies, storage,
 cache) associated with the requesting website. It allows web developers to
 have more control over the data stored locally by a browser for their
 origins.
 [https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Clear-Site-
 Data]

 The function `wp_logout` in `pluggable.php` should send the header:
 {{{
 header('Clear-Site-Data: *');
 }}}

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


More information about the wp-trac mailing list