Firefox extension: how to read a cookie name and value on the current page
Posted
by encryptor
on Stack Overflow
See other posts from Stack Overflow
or by encryptor
Published on 2010-05-11T07:40:58Z
Indexed on
2010/05/13
12:14 UTC
Read the original article
Hit count: 420
My extension works on an application, which requires user login. Once the user has logged in, I need to read the cookies and use them in my XMLHttpRequests. So initially I need to check if the cookie is set, if not, I direct the user to the login page. Once logged in, I need to read the cookies and send it as part of my further requests.
How do I read cookies from a XMLHttpRequest or otherwise (if we don't even know the name of the cookie)
There is to function as getRequestHeader.. but what I need is something like that.
© Stack Overflow or respective owner