<?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>Educer &#187; error</title>
	<atom:link href="http://www.educer.org/tag/error/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.educer.org</link>
	<description>cooler than educr</description>
	<lastBuildDate>Tue, 18 May 2010 02:57:14 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Forget Me Not: PHP Sessions Should Be Started First</title>
		<link>http://www.educer.org/2009/06/18/forget-me-not-php-sessions-should-be-started-first/</link>
		<comments>http://www.educer.org/2009/06/18/forget-me-not-php-sessions-should-be-started-first/#comments</comments>
		<pubDate>Thu, 18 Jun 2009 14:40:50 +0000</pubDate>
		<dc:creator>jeremy</dc:creator>
				<category><![CDATA[php]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[error]]></category>

		<guid isPermaLink="false">http://www.educer.org/?p=76</guid>
		<description><![CDATA[I&#8217;m sure I&#8217;ll continue to forget this, since this is the third or so time it&#8217;s happened to me, but I&#8217;m going to leave a note for later anyway. Maybe this will make it more obvious to myself. If you&#8217;re experiencing weird/broken stuff with your PHP SESSION variables, and if you check the error log [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m sure I&#8217;ll continue to forget this, since this is the third or so time it&#8217;s happened to me, but I&#8217;m going to leave a note for later anyway. Maybe this will make it more obvious to myself. <img src='http://www.educer.org/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>If you&#8217;re experiencing weird/broken stuff with your PHP SESSION variables, and if you check the error log and see a message about headers&#8230;.</p>
<blockquote><p>Warning: session_start(): Cannot send session cookie &#8211; headers already sent by</p></blockquote>
<p>&#8230; then you are starting your session after some kind of output has already been sent to the user. For the visual example, take a look at the following before smacking your forehead. The first example is correct, the second is probably wrong.</p>
<p><code style="margin-left:50px;"><br />
session_start();<br />
include ('header.php');<br />
</code><br />
&#8212;&#8212;&#8212;<br />
<code><br />
include ('header.php');<br />
session_start();<br />
</code></p>
<p>Consider myself reminded. That is all.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.educer.org/2009/06/18/forget-me-not-php-sessions-should-be-started-first/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
