<?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: Using sessions in WordPress</title>
	<atom:link href="http://www.diovo.com/2009/10/using-sessions-in-wordpress/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.diovo.com/2009/10/using-sessions-in-wordpress/</link>
	<description>Programming. Design. Security. Startups</description>
	<lastBuildDate>Sat, 31 Jul 2010 14:06:49 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: Ecommerce Application</title>
		<link>http://www.diovo.com/2009/10/using-sessions-in-wordpress/comment-page-1/#comment-3066</link>
		<dc:creator>Ecommerce Application</dc:creator>
		<pubDate>Thu, 22 Jul 2010 13:09:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.diovo.com/?p=950#comment-3066</guid>
		<description>Great share. Thanks a lot. Really saved my day!!</description>
		<content:encoded><![CDATA[<p>Great share. Thanks a lot. Really saved my day!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: web development</title>
		<link>http://www.diovo.com/2009/10/using-sessions-in-wordpress/comment-page-1/#comment-2996</link>
		<dc:creator>web development</dc:creator>
		<pubDate>Tue, 06 Jul 2010 07:58:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.diovo.com/?p=950#comment-2996</guid>
		<description>how they know if you are still logged in. using cookies?</description>
		<content:encoded><![CDATA[<p>how they know if you are still logged in. using cookies?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: shulato</title>
		<link>http://www.diovo.com/2009/10/using-sessions-in-wordpress/comment-page-1/#comment-2995</link>
		<dc:creator>shulato</dc:creator>
		<pubDate>Tue, 06 Jul 2010 07:57:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.diovo.com/?p=950#comment-2995</guid>
		<description>why they don&#039;t use session? what do they use, cookies?</description>
		<content:encoded><![CDATA[<p>why they don&#8217;t use session? what do they use, cookies?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David Cowgill</title>
		<link>http://www.diovo.com/2009/10/using-sessions-in-wordpress/comment-page-1/#comment-2454</link>
		<dc:creator>David Cowgill</dc:creator>
		<pubDate>Wed, 10 Mar 2010 00:00:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.diovo.com/?p=950#comment-2454</guid>
		<description>Yes, I&#039;m surprised that WP doesn&#039;t use sessions either. I actually found that using a hook is much better for plugin and themes so you then don&#039;t have to worry about having the user modify their wp-config.php file.

Here&#039;s a simple function you can add in your functions.php file that will start a session automatically. Then you don&#039;t need the wp-config.php session_start(); code.

function cp_admin_init() {
    if (!session_id())
        session_start();
}

add_action(&#039;init&#039;, &#039;cp_admin_init&#039;);</description>
		<content:encoded><![CDATA[<p>Yes, I&#8217;m surprised that WP doesn&#8217;t use sessions either. I actually found that using a hook is much better for plugin and themes so you then don&#8217;t have to worry about having the user modify their wp-config.php file.</p>
<p>Here&#8217;s a simple function you can add in your functions.php file that will start a session automatically. Then you don&#8217;t need the wp-config.php session_start(); code.</p>
<p>function cp_admin_init() {<br />
    if (!session_id())<br />
        session_start();<br />
}</p>
<p>add_action(&#8216;init&#8217;, &#8216;cp_admin_init&#8217;);</p>
]]></content:encoded>
	</item>
</channel>
</rss>
