<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>SodiumLightsTheHorizon.co.uk &#187; PHP / HTML / CSS</title>
	<atom:link href="http://sodiumlightsthehorizon.co.uk/cms/-/php/feed/" rel="self" type="application/rss+xml" />
	<link>http://sodiumlightsthehorizon.co.uk/cms</link>
	<description></description>
	<lastBuildDate>Sat, 14 Jan 2012 23:43:31 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Forcing PHP session ids to URL strings</title>
		<link>http://sodiumlightsthehorizon.co.uk/cms/2009/04/forcing-php-session-ids-to-url-strings/</link>
		<comments>http://sodiumlightsthehorizon.co.uk/cms/2009/04/forcing-php-session-ids-to-url-strings/#comments</comments>
		<pubDate>Wed, 15 Apr 2009 14:15:01 +0000</pubDate>
		<dc:creator>pjm</dc:creator>
				<category><![CDATA[PHP / HTML / CSS]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[stupidity]]></category>
		<category><![CDATA[weird]]></category>

		<guid isPermaLink="false">http://sodiumlightsthehorizon.co.uk/cms/?p=155</guid>
		<description><![CDATA[There are (thankfully rare) times when you need to force your system to pass PHP session values as URL query strings instead of as cookie values. In my case it was with American cell phone operators who have set their gateways to claim that they accept cookies and then ditch them silently. In theory you [...]]]></description>
			<content:encoded><![CDATA[<p>There are (thankfully rare) times when you need to force your system to pass PHP session values as URL query strings instead of as cookie values. In my case it was with American cell phone operators who have set their gateways to <i>claim</i> that they accept cookies and then ditch them silently.</p>
<p>In theory you can force PHP to transmit its cookie IDs as query strings in the php.ini or the htaccess files, however that&#8217;s often not available to those on shared boxes.</p>
<p>Yes, we&#8217;re talking about an issue that effects a small number of people here. Sadly, due to a server configuration issue, I&#8217;m one of them.</p>
<p>So, what&#8217;s the solution?</p>
<p>The following code tells PHP to use query strings instead of cookies&#8230;</p>
<p><code>ini_set('session.use_trans_sid',1);<br />
ini_set('session.use_only_cookies',0);</code></p>
<p>Except, it doesn&#8217;t work. This, however, does work&#8230;</p>
<p><code>$_COOKIE = array();<br />
ini_set('session.use_trans_sid',1);<br />
ini_set('session.use_only_cookies',0);</code></p>
<p>Don&#8217;t ask me&#8230; I don&#8217;t understand it either.</p>
]]></content:encoded>
			<wfw:commentRss>http://sodiumlightsthehorizon.co.uk/cms/2009/04/forcing-php-session-ids-to-url-strings/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Welcome to Sodium</title>
		<link>http://sodiumlightsthehorizon.co.uk/cms/2009/04/welcome-to-sodium/</link>
		<comments>http://sodiumlightsthehorizon.co.uk/cms/2009/04/welcome-to-sodium/#comments</comments>
		<pubDate>Fri, 10 Apr 2009 02:38:32 +0000</pubDate>
		<dc:creator>pjm</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Food]]></category>
		<category><![CDATA[Four Wheels]]></category>
		<category><![CDATA[Journal]]></category>
		<category><![CDATA[PHP / HTML / CSS]]></category>
		<category><![CDATA[Web Toys]]></category>
		<category><![CDATA[Wooden Stuff]]></category>
		<category><![CDATA[meta]]></category>

		<guid isPermaLink="false">http://sodiumlightsthehorizon.dev/cms/?p=48</guid>
		<description><![CDATA[Every second a new blog is started1. This is the blog for this second&#8230; Anything from this point onwards has been brought over from a different site. Unfortunately comments haven&#8217;t come over with them, so the sparkling wit my words generate isn&#8217;t here. Unless commenters are as bored as I was when I started the [...]]]></description>
			<content:encoded><![CDATA[<p>Every second a new blog is started<sup>1</sup>. This is the blog for this second&#8230;</p>
<p>Anything from this point onwards has been brought over from a different site. Unfortunately comments haven&#8217;t come over with them, so the sparkling wit my words generate isn&#8217;t here. Unless commenters are as bored as I was when I started the transfer.</p>
<p>For the record &#8220;Sodium Lights The Horizon&#8221; means nothing. It was a random phrase that came from a random conversation. It seems strangely lyrical but google returned zero hits on the phrase. Simple as that&#8230;</p>
<p><small>1 &#8211; I may have made that up. But you believed it, didn&#8217;t you&#8230;?</small></p>
]]></content:encoded>
			<wfw:commentRss>http://sodiumlightsthehorizon.co.uk/cms/2009/04/welcome-to-sodium/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

