https://www.atomictag.com/2015/04/05/retrieve-wordpress-logged-in-username-store-it-in-a-custom-http-x-header-and-clean-cookie/
Retrieve Wordpress logged in username, store it in a custom http x-header and clean cookie