<?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>Coderguy's Blog &#187; PHP</title>
	<atom:link href="http://www.coderguy.com/category/php/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.coderguy.com</link>
	<description>Thoughts on code</description>
	<lastBuildDate>Mon, 19 Jul 2010 15:22:48 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>PHP Session Numeric Key Bug</title>
		<link>http://www.coderguy.com/2009/07/php-session-numeric-key-bug/</link>
		<comments>http://www.coderguy.com/2009/07/php-session-numeric-key-bug/#comments</comments>
		<pubDate>Wed, 08 Jul 2009 16:03:07 +0000</pubDate>
		<dc:creator>coderguy</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Quick Tip]]></category>
		<category><![CDATA[Software Developement]]></category>
		<category><![CDATA[bugs]]></category>
		<category><![CDATA[sessions]]></category>

		<guid isPermaLink="false">http://www.coderguy.com/?p=34</guid>
		<description><![CDATA[I was working on a 404 page today.  The pages that detected the 404 and routed it to the 404 page, would try and set the $_SESSION['404'] variable.  After setting the variable I was able to use it on that page.  However, after the redirect the variable was missing.  I could set other variables, and [...]]]></description>
			<content:encoded><![CDATA[<p>I was working on a 404 page today.  The pages that detected the 404 and routed it to the 404 page, would try and set the $_SESSION['404'] variable.  After setting the variable I was able to use it on that page.  However, after the redirect the variable was missing.  I could set other variables, and they would remain from page to page.  I put in some extra debugging and received the message:</p>
<p>Notice: Unknown: Skipping numeric key 404</p>
<p>This lead me to rename my variable to $_SESSION['url404'], which would stay set on the redirect.  I have not found any documentation that says that numeric keys are illegal for sessions vars, but I believe it to be the case.</p>
<p>Hope this saves you time in your PHP coding.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.coderguy.com/2009/07/php-session-numeric-key-bug/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
