https://bugzilla.wikimedia.org/show_bug.cgi?id=14736





--- Comment #14 from Katherine Ahern <k...@emergentdatasystems.com>  2009-12-01 
21:58:07 UTC ---
I was curious about whether using a redirect to set a cookie and then serve an
image would work, so I implemented Platonides' suggestion, and it totally does.
The redirect page sets the cookie. In FF3.5 third party cookies are disabled by
default, so when I visited:

www.networkedtraveler.org/dev/thirdPartyCookies.php

I got the "no cookie set" image. When I changed my browser settings to accept
third party cookies I got the other image. Here are the scripts:

www.emergentdatasystems.com/redirect.php

<?php

        //set cookie
        setcookie("testCookie", "set it");

        //redirect
        header("Location: http://www.emergentdatasystems.com/image.php";);

?>


www.emergentdatasystems.com/image.php

<?php
if (isset($_COOKIE['testCookie'])) {
                readfile("images.jpg");
        } else {
                readfile("images-1.jpg");
        }

?>


-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to