ff 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/11
7:44 UTC
Read the original article
Hit count: 271
My extension works on a 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 mt further requests.
Can someone plese help me on how to read cookies from a xmlhttprequest or otherwise (if we dont 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