<?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: PHP Session Cookie Multiple Domains</title>
	<atom:link href="http://www.jontodd.com/2006/08/10/php-session-cookie-multiple-domains/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.jontodd.com/2006/08/10/php-session-cookie-multiple-domains/</link>
	<description>Optimal</description>
	<lastBuildDate>Thu, 26 Aug 2010 20:08:02 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: Virgil</title>
		<link>http://www.jontodd.com/2006/08/10/php-session-cookie-multiple-domains/comment-page-1/#comment-36361</link>
		<dc:creator>Virgil</dc:creator>
		<pubDate>Thu, 26 Aug 2010 20:08:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.jontodd.com/2006/08/10/php-session-cookie-multiple-domains/#comment-36361</guid>
		<description>God, this saved my butt- I can&#039;t believe there isn&#039;t some mention of this in the PHP online documentation in the section on session variables.  Maybe someone has left a comment in there, but it always seems to be a ton of reading to find any pertinent info in the comments on the manual.

Basically had a issue where I use all kinds of session variables for a shopping cart on a site I developed, and when loading the secure pages from a non-www domain to the cart (which uses the www prefix) the session variables weren&#039;t available.  Added the line to the .htaccess file and voila!   All is happy, no need to modify any php.

thanks so much for a post on what would seem to be a very common problem!</description>
		<content:encoded><![CDATA[<p>God, this saved my butt- I can&#8217;t believe there isn&#8217;t some mention of this in the PHP online documentation in the section on session variables.  Maybe someone has left a comment in there, but it always seems to be a ton of reading to find any pertinent info in the comments on the manual.</p>
<p>Basically had a issue where I use all kinds of session variables for a shopping cart on a site I developed, and when loading the secure pages from a non-www domain to the cart (which uses the www prefix) the session variables weren&#8217;t available.  Added the line to the .htaccess file and voila!   All is happy, no need to modify any php.</p>
<p>thanks so much for a post on what would seem to be a very common problem!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mannan</title>
		<link>http://www.jontodd.com/2006/08/10/php-session-cookie-multiple-domains/comment-page-1/#comment-34568</link>
		<dc:creator>Mannan</dc:creator>
		<pubDate>Wed, 23 Dec 2009 09:40:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.jontodd.com/2006/08/10/php-session-cookie-multiple-domains/#comment-34568</guid>
		<description>Hi

I have 3 sub domains and one main domains

Code I am using is:
	session_set_cookie_params(3600,&#039;/&#039;,&#039;.cmela.com&#039;);
	session_start();

But it&#039;s not working... it works fine on main domains but when i go to sub domain it logs out... can you please suggest me anything??

Thank you
-Mannan</description>
		<content:encoded><![CDATA[<p>Hi</p>
<p>I have 3 sub domains and one main domains</p>
<p>Code I am using is:<br />
	session_set_cookie_params(3600,&#8217;/',&#8217;.cmela.com&#8217;);<br />
	session_start();</p>
<p>But it&#8217;s not working&#8230; it works fine on main domains but when i go to sub domain it logs out&#8230; can you please suggest me anything??</p>
<p>Thank you<br />
-Mannan</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Les</title>
		<link>http://www.jontodd.com/2006/08/10/php-session-cookie-multiple-domains/comment-page-1/#comment-34097</link>
		<dc:creator>Les</dc:creator>
		<pubDate>Mon, 23 Nov 2009 19:56:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.jontodd.com/2006/08/10/php-session-cookie-multiple-domains/#comment-34097</guid>
		<description>I wouldn&#039;t use the domain switch on shared hosting for security reasons; if you have your own box then that would be acceptable, but it&#039;s a whole can of worms if you ask me.</description>
		<content:encoded><![CDATA[<p>I wouldn&#8217;t use the domain switch on shared hosting for security reasons; if you have your own box then that would be acceptable, but it&#8217;s a whole can of worms if you ask me.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hemalatha M</title>
		<link>http://www.jontodd.com/2006/08/10/php-session-cookie-multiple-domains/comment-page-1/#comment-33874</link>
		<dc:creator>Hemalatha M</dc:creator>
		<pubDate>Fri, 13 Nov 2009 21:15:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.jontodd.com/2006/08/10/php-session-cookie-multiple-domains/#comment-33874</guid>
		<description>Thanks, Jon. I found your article very helpful and insightful.</description>
		<content:encoded><![CDATA[<p>Thanks, Jon. I found your article very helpful and insightful.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: nivas</title>
		<link>http://www.jontodd.com/2006/08/10/php-session-cookie-multiple-domains/comment-page-1/#comment-33807</link>
		<dc:creator>nivas</dc:creator>
		<pubDate>Wed, 11 Nov 2009 07:34:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.jontodd.com/2006/08/10/php-session-cookie-multiple-domains/#comment-33807</guid>
		<description>Cool. This article was fine..</description>
		<content:encoded><![CDATA[<p>Cool. This article was fine..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Amjith PS</title>
		<link>http://www.jontodd.com/2006/08/10/php-session-cookie-multiple-domains/comment-page-1/#comment-33463</link>
		<dc:creator>Amjith PS</dc:creator>
		<pubDate>Mon, 26 Oct 2009 06:38:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.jontodd.com/2006/08/10/php-session-cookie-multiple-domains/#comment-33463</guid>
		<description>Hi,
Please make it more clear with example code so that medium level developers can also understand. i think you have good idea. but this post doesnt explain the solution properly. Please make some sample piece of code what to be added in php file as well as in .htaccess so that we can apply with out any doubts.

Thanks in advance.</description>
		<content:encoded><![CDATA[<p>Hi,<br />
Please make it more clear with example code so that medium level developers can also understand. i think you have good idea. but this post doesnt explain the solution properly. Please make some sample piece of code what to be added in php file as well as in .htaccess so that we can apply with out any doubts.</p>
<p>Thanks in advance.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
