WordPress sets several cookies with a random hash appended. How can I use Javascript (and regex?) to find out if a cookie named wordpress_logged_in_XXXXXXXXXXXXXXXXXX exists and what the name of it is?
Picture.png http://img9.imageshack.us/img9/3453/pictureje.png
document.cookieis a string which contains all cookies, excluding the HTTP-only cookies.To get any cookie which matches
wordpress_logged_in_...., use:Explanation of pattern: