# Detect if cookies are enabled?

**URL:** <https://forum.kirupa.com/t/detect-if-cookies-are-enabled/7579>\
**Category:** Uncategorized\
**Created:** [November 3, 2002, 3:52pm UTC](https://forum.kirupa.com/t/detect-if-cookies-are-enabled/7579 "2002-11-03T15:52:54Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![andr\_in](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/andr_in/32/37_2.png) [@andr\_in](https://forum.kirupa.com/u/andr_in)\
**Post date:** [November 3, 2002, 3:52pm UTC](https://forum.kirupa.com/t/detect-if-cookies-are-enabled/7579/1 "2002-11-03T15:52:54Z")

</div>

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!

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 4, 2002, 4:45am UTC](https://forum.kirupa.com/t/detect-if-cookies-are-enabled/7579/2 "2002-11-04T04:45:28Z")

</div>

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 🙂

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 4, 2002, 2:17pm UTC](https://forum.kirupa.com/t/detect-if-cookies-are-enabled/7579/3 "2002-11-04T14:17:35Z")

</div>

wel… thx anyway!

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 4, 2002, 4:54pm UTC](https://forum.kirupa.com/t/detect-if-cookies-are-enabled/7579/4 "2002-11-04T16:54:21Z")

</div>

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…

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 4, 2002, 5:46pm UTC](https://forum.kirupa.com/t/detect-if-cookies-are-enabled/7579/5 "2002-11-04T17:46:56Z")

</div>

Hmmm, that might be possible :-\ I don’t know how though.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 4, 2002, 5:57pm UTC](https://forum.kirupa.com/t/detect-if-cookies-are-enabled/7579/6 "2002-11-04T17:57:33Z")

</div>

we used to do it like Syko said, only with JavaScript in the HTML…

Rev:elderly:

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 4, 2002, 5:58pm UTC](https://forum.kirupa.com/t/detect-if-cookies-are-enabled/7579/7 "2002-11-04T17:58:50Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 4, 2002, 6:04pm UTC](https://forum.kirupa.com/t/detect-if-cookies-are-enabled/7579/8 "2002-11-04T18:04:28Z")

</div>

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:

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 4, 2002, 6:31pm UTC](https://forum.kirupa.com/t/detect-if-cookies-are-enabled/7579/9 "2002-11-04T18:31:03Z")

</div>

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…

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 4, 2002, 6:44pm UTC](https://forum.kirupa.com/t/detect-if-cookies-are-enabled/7579/10 "2002-11-04T18:44:07Z")

</div>

and I noticed that there are some kinda “first-party” and “third-party” cookies. What the heck is the difference between these???
