To detect if browser accept 3th.part cookies

S

Steel

Hi at all

I need to detect if cookies are enabled into user browser

To do that I use this function:

function cooks()

{

var cookieEnabled=(navigator.cookieEnabled)? true : false

//if not IE4+ nor NS6+

if (typeof navigator.cookieEnabled=="undefined" && !cookieEnabled){

document.cookie="testcookie"

cookieEnabled=(document.cookie.indexOf("testcookie")!=-1)? true : false

}

return cookieEnabled;

}

Unfortunately it detect only if are enabled cookies of current web site but
not 3th.parts cookies (other site cookies).

How can I do to detect if are enabled 3th.part cookies?

Thank in advance
 
T

Thomas 'PointedEars' Lahn

Steel said:
I need to detect if cookies are enabled into user browser

To do that I use this function:

Dump it; it is outdated. Cookie handling has become much more sophisticated
since these properties were introduced, which has rendered them useless.

Set the cookie and read it back; if successful, cookies of that type are
"enabled".
How can I do to detect if are enabled 3th.part cookies?

The same way.


PointedEars
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,581
Members
45,057
Latest member
KetoBeezACVGummies

Latest Threads

Top