Can two different browser share one cookie?

You can build a cookie-proxy by creating a Flash application and use Shared Objects (SO = Flash cookies) to store data. Any Browsers with Flash installed could retrieve the informations stored in the SO. But, it’s an ugly workaround. Just don’t share cookies… and find another way to build your website/app.

How does Facebook set cross-domain cookies for iFrames on canvas pages?

So the iFrame isn’t actually setting the u cookie for the runwithfriends.appspot.com domain. What Facebook does is it creates a form, <form action=”runwithfriends.appspot.com/…” target=”name_of_iframe” method=”POST”> and uses javascript to submit the form on page load. Since the form’s target is the iframe, it doesn’t reload the page… it just loads the iframe with the POST’s … Read more

Safari doesn’t set Cookie but IE / FF does

It looks like you hit a Safari bug here; you are redirecting any visiting browser to /entry while setting the cookie at the same time, and Safari is ignoring the Set-Cookie header when encountering the 302 HTTP status: $ curl -so /dev/null -D – http://4much.schnickschnack.info/ HTTP/1.1 302 Moved Temporarily Server: nginx/0.7.61 Date: Sun, 19 Jul … Read more

Setting a cookie using JavaFX’s WebEngine/WebView

I have managed to solve this issue with the help of Vasiliy Baranov from Oracle. Vasiliy wrote to me: Try putting the cookie into java.net.CookieHandler.getDefault() after the WebView is instantiated for the first time and before the call to WebEngine.load, e.g. as follows: WebView webView = new WebView(); URI uri = URI.create(“http://mysite.com”); Map<String, List<String>> headers … Read more

Clear cookies on browser close

Sessions are usualy used for this. According to Wikipedia, when no expiration date is set, a cookie is cleared when the user closes the browser. The cookie setter can specify a deletion date, in which case the cookie will be removed on that date. If the cookie setter does not specify a date, the cookie … Read more

What are allowed characters in cookies?

According to the ancient Netscape cookie_spec the entire NAME=VALUE string is: a sequence of characters excluding semi-colon, comma and white space. So – should work, and it does seem to be OK in browsers I’ve got here; where are you having trouble with it? By implication of the above: = is legal to include, but … Read more