PDA

View Full Version : detect if cookies are enabled?



andr.in
November 3rd, 2002, 10:52 AM
Is there a way to detect if cookies are enabled?
Well if it's hard to do in html or if it can't be done at all!

Is there a way to detect cookie-enabling in flash?

AnYthIng!

lostinbeta
November 3rd, 2002, 11:45 PM
Determining if cookies are enabled.... hmm, I don't think it is. I believe you need to program a Java applet to write a cookie and try to return it as a test. I have no clue how to do that though.

You can determine of a browser supports cookies, and you can determine if they have Java enabled and such. But I don't think there is an easy way to test for cookies enabled.

Maybe someone else out there knows of one though :)

andr.in
November 4th, 2002, 09:17 AM
wel... thx anyway!

andr.in
November 4th, 2002, 11:54 AM
hm... I think I could make .swf like it sends a cookie and a few moments later looks for the sended cookie and detects if the cookies are enabled or not...

lostinbeta
November 4th, 2002, 12:46 PM
Hmmm, that might be possible :-\ I don't know how though.

reverendflash
November 4th, 2002, 12:57 PM
we used to do it like Syko said, only with JavaScript in the HTML...

Rev:elderly:

lostinbeta
November 4th, 2002, 12:58 PM
Do you remember how?

I would also like to know how to check if cookies are enabled.

I know how to check if you have a browser that supports cookies, but not if they are actually enabled.

reverendflash
November 4th, 2002, 01:04 PM
we used to set a cooking within the splash page, then try to read the cookie in a main page... If we couldn't read the cookie, then we assumed cookies were not enabled... :-\

Rev:elderly:

andr.in
November 4th, 2002, 01:31 PM
hum... I didn't think of that before but are the flash cookies (sharedObjects) the same as the html cookies.
I was wondering if they aren't the same then flash cookies will still work even if html cookies are turned off...

andr.in
November 4th, 2002, 01:44 PM
and I noticed that there are some kinda "first-party" and "third-party" cookies. What the heck is the difference between these???