I am making a Chrome extension and i need to get PHPSESSID
from cookies.
When I type document.cookie
in console I get the cookies of the page but not PHPSESSID
but when i open EditThisCookie the PHPSESSID is shown:
How can I get the PHPSESSID value?
I tried
function getPHPSESSID() {
var url = tab.url;
chrome.cookies.get({url: url, name: 'PHPSESSID'}, function(cookie) {
alert(cookie.value);
});
}