-4
You can get with php or Javascript a list of all the domains of cookies stored in the user’s browser?
-4
You can get with php or Javascript a list of all the domains of cookies stored in the user’s browser?
0
Your question is vague, you didn’t even try to get us to help you based on something?
In any case, maybe this will help you catch the cookies
page.
function obter_cookies() {
var cookies = { };
if (document.cookie && document.cookie != '') {
var split = document.cookie.split(';');
for (var i = 0; i < split.length; i++) {
var name_value = split[i].split("=");
name_value[0] = name_value[0].replace(/^ /, '');
cookies[decodeURIComponent(name_value[0])] = decodeURIComponent(name_value[1]);
}
}
return cookies;
}
Browser other questions tagged php javascript
You are not signed in. Login or sign up in order to post.