ff extension: how to read a cookie name and value on the current page
- by encryptor
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