<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	>
<channel>
	<title>Comments on: Cross-domain cookies/sessions in Safari and all other browsers</title>
	<atom:link href="http://anantgarg.com/2010/02/18/cross-domain-cookies-in-safari/feed/" rel="self" type="application/rss+xml" />
	<link>http://anantgarg.com/2010/02/18/cross-domain-cookies-in-safari/</link>
	<description>on web development</description>
	<pubDate>Sat, 04 Feb 2012 06:37:39 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: evilbloodydemon</title>
		<link>http://anantgarg.com/2010/02/18/cross-domain-cookies-in-safari/comment-page-1/#comment-13450</link>
		<dc:creator>evilbloodydemon</dc:creator>
		<pubDate>Thu, 12 May 2011 06:29:41 +0000</pubDate>
		<guid isPermaLink="false">http://anantgarg.com/?p=336#comment-13450</guid>
		<description>timeout in sample code is broken
setTimeout(processApplication_()_,2000);
should be 
setTimeout(processApplication,2000);</description>
		<content:encoded><![CDATA[<p>timeout in sample code is broken<br />
setTimeout(processApplication_()_,2000);<br />
should be<br />
setTimeout(processApplication,2000);</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rachit</title>
		<link>http://anantgarg.com/2010/02/18/cross-domain-cookies-in-safari/comment-page-1/#comment-13012</link>
		<dc:creator>Rachit</dc:creator>
		<pubDate>Thu, 28 Apr 2011 19:37:19 +0000</pubDate>
		<guid isPermaLink="false">http://anantgarg.com/?p=336#comment-13012</guid>
		<description>Once the sessionframe is submitted, is there anyway to call a function from the parent page (remote domain)? So, instead of the 2 sec hack, I want to make sure I do things only after a confirmed response from the startsession.php.

The order of the events I see with the mentioned approach :
(1) host remote domain page (let's call mainpage.htm)
(2) blank.php
(3) startsession.php

I want the response of #3 to invoke some javascript on #1. I'm playing with the response type of json and other but none of them seem to be working.

Anyone any idea?

Thanks!</description>
		<content:encoded><![CDATA[<p>Once the sessionframe is submitted, is there anyway to call a function from the parent page (remote domain)? So, instead of the 2 sec hack, I want to make sure I do things only after a confirmed response from the startsession.php.</p>
<p>The order of the events I see with the mentioned approach :<br />
(1) host remote domain page (let&#8217;s call mainpage.htm)<br />
(2) blank.php<br />
(3) startsession.php</p>
<p>I want the response of #3 to invoke some javascript on #1. I&#8217;m playing with the response type of json and other but none of them seem to be working.</p>
<p>Anyone any idea?</p>
<p>Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Suraj Shrestha</title>
		<link>http://anantgarg.com/2010/02/18/cross-domain-cookies-in-safari/comment-page-1/#comment-11650</link>
		<dc:creator>Suraj Shrestha</dc:creator>
		<pubDate>Wed, 30 Mar 2011 12:45:31 +0000</pubDate>
		<guid isPermaLink="false">http://anantgarg.com/?p=336#comment-11650</guid>
		<description>How come nobody noticed that there was action="post" in line 15 of first code. It should have been method="post".</description>
		<content:encoded><![CDATA[<p>How come nobody noticed that there was action=&#8221;post&#8221; in line 15 of first code. It should have been method=&#8221;post&#8221;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sudhanshu</title>
		<link>http://anantgarg.com/2010/02/18/cross-domain-cookies-in-safari/comment-page-1/#comment-11542</link>
		<dc:creator>Sudhanshu</dc:creator>
		<pubDate>Mon, 28 Mar 2011 13:32:14 +0000</pubDate>
		<guid isPermaLink="false">http://anantgarg.com/?p=336#comment-11542</guid>
		<description>Hi Guys,
It's not working for me. Please advise on which domain we need to create iFrame for fake post and what should be the domain of this iFrame src and form action attribute.
Should it be the domain on which my application is running or the domain which embed my application in iFrame.</description>
		<content:encoded><![CDATA[<p>Hi Guys,<br />
It&#8217;s not working for me. Please advise on which domain we need to create iFrame for fake post and what should be the domain of this iFrame src and form action attribute.<br />
Should it be the domain on which my application is running or the domain which embed my application in iFrame.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sudhanshu</title>
		<link>http://anantgarg.com/2010/02/18/cross-domain-cookies-in-safari/comment-page-1/#comment-11532</link>
		<dc:creator>Sudhanshu</dc:creator>
		<pubDate>Mon, 28 Mar 2011 06:42:43 +0000</pubDate>
		<guid isPermaLink="false">http://anantgarg.com/?p=336#comment-11532</guid>
		<description>Hi Guys,
I went ahead this approach but for some unknown reasons it worked only once.
Please suggest.</description>
		<content:encoded><![CDATA[<p>Hi Guys,<br />
I went ahead this approach but for some unknown reasons it worked only once.<br />
Please suggest.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Beanie</title>
		<link>http://anantgarg.com/2010/02/18/cross-domain-cookies-in-safari/comment-page-1/#comment-11430</link>
		<dc:creator>Beanie</dc:creator>
		<pubDate>Thu, 24 Mar 2011 20:57:02 +0000</pubDate>
		<guid isPermaLink="false">http://anantgarg.com/?p=336#comment-11430</guid>
		<description>Does this work in Safari 5.0.4? I cant get it working.</description>
		<content:encoded><![CDATA[<p>Does this work in Safari 5.0.4? I cant get it working.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paul F</title>
		<link>http://anantgarg.com/2010/02/18/cross-domain-cookies-in-safari/comment-page-1/#comment-11261</link>
		<dc:creator>Paul F</dc:creator>
		<pubDate>Sun, 20 Mar 2011 20:10:01 +0000</pubDate>
		<guid isPermaLink="false">http://anantgarg.com/?p=336#comment-11261</guid>
		<description>This works and thanks for the great hack. However the setTimeout function doesn't work as expected in Safari - which is the browser the fix is targeted at. I found that I needed to quote the function name...

setTimeout('processApplication()',2000);

...otherwise my application was starting before startsession.php was called.</description>
		<content:encoded><![CDATA[<p>This works and thanks for the great hack. However the setTimeout function doesn&#8217;t work as expected in Safari - which is the browser the fix is targeted at. I found that I needed to quote the function name&#8230;</p>
<p>setTimeout(&#8217;processApplication()&#8217;,2000);</p>
<p>&#8230;otherwise my application was starting before startsession.php was called.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: stefan</title>
		<link>http://anantgarg.com/2010/02/18/cross-domain-cookies-in-safari/comment-page-1/#comment-8223</link>
		<dc:creator>stefan</dc:creator>
		<pubDate>Thu, 02 Dec 2010 13:37:08 +0000</pubDate>
		<guid isPermaLink="false">http://anantgarg.com/?p=336#comment-8223</guid>
		<description>Hello, I had implemented other ways of doing this but all of them failed in Safari, worked on every other browser but I was not happy about them not working on Safari, now thanks to you I got I working for Safari as well as all the others.
It's a great option to use when implementing single sign on methods like I do.
Many thanks.</description>
		<content:encoded><![CDATA[<p>Hello, I had implemented other ways of doing this but all of them failed in Safari, worked on every other browser but I was not happy about them not working on Safari, now thanks to you I got I working for Safari as well as all the others.<br />
It&#8217;s a great option to use when implementing single sign on methods like I do.<br />
Many thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: fguillen</title>
		<link>http://anantgarg.com/2010/02/18/cross-domain-cookies-in-safari/comment-page-1/#comment-8209</link>
		<dc:creator>fguillen</dc:creator>
		<pubDate>Wed, 01 Dec 2010 13:03:56 +0000</pubDate>
		<guid isPermaLink="false">http://anantgarg.com/?p=336#comment-8209</guid>
		<description>Something I have found is that your 'http://www.yourdomain.com/startsession.php' post call has to try to set some cookie, other wise it won't work.

Thanks for the trick</description>
		<content:encoded><![CDATA[<p>Something I have found is that your &#8216;http://www.yourdomain.com/startsession.php&#8217; post call has to try to set some cookie, other wise it won&#8217;t work.</p>
<p>Thanks for the trick</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: JZ</title>
		<link>http://anantgarg.com/2010/02/18/cross-domain-cookies-in-safari/comment-page-1/#comment-7885</link>
		<dc:creator>JZ</dc:creator>
		<pubDate>Fri, 12 Nov 2010 17:25:21 +0000</pubDate>
		<guid isPermaLink="false">http://anantgarg.com/?p=336#comment-7885</guid>
		<description>@Joe: "action" is correct for the target script in an HTML form. However, there is a second "action" in the code that should be "method" instead: method="post" (not action="post").</description>
		<content:encoded><![CDATA[<p>@Joe: &#8220;action&#8221; is correct for the target script in an HTML form. However, there is a second &#8220;action&#8221; in the code that should be &#8220;method&#8221; instead: method=&#8221;post&#8221; (not action=&#8221;post&#8221;).</p>
]]></content:encoded>
	</item>
</channel>
</rss>

