Results 1 to 4 of 4
-
05-15-2006, 11:36 PM #1Web Hosting Master
- Join Date
- Jun 2004
- Location
- Bay Area -USA
- Posts
- 1,740
get a cookie without knowing the cookie name?
Is there a way to obtain all the cookie names that a user currently has and display them?
For example say you have set 3 cookies for this user:
cookie1
cookie2
cookie3
I want the script to be able to say you have the following for our site:
cookie1
cookie2
cookie3
Also, is there a way to do this in flash?<<< Please see Forum Guidelines for signature setup. >>>
-
05-15-2006, 11:47 PM #2Junior Guru Wannabe
- Join Date
- Sep 2004
- Location
- Rohnert Park, CA
- Posts
- 98
In PHP you can just do...
Code:foreach ( $_COOKIE as $key => $value ) { //..... }
-
05-16-2006, 02:41 AM #3Web Hosting Master
- Join Date
- Jul 2003
- Location
- Kuwait
- Posts
- 5,104
Just so its obvious, you can only display cookies that you have set (that are from your domain), not all cookies that the user has stored.
For Flash, I don't think you can do this natively, but you can pass the cookie information from a PHP or javascript snippet to flash and display it there.
-
05-30-2006, 10:29 PM #4New Member
- Join Date
- May 2006
- Posts
- 1
Originally Posted by fyrestrtr
i want a clode like "escape(document.cookie)" but in actionscript not javascript
also i don't want use of this geturl("javascript:alert(document.cookie)")