<?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.frank-verhoeven.com/using-session-in-wordpress/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.frank-verhoeven.com/using-session-in-wordpress/</link>
	<description>Webdevelopment Blog</description>
	<lastBuildDate>Sun, 29 Jan 2012 20:42:20 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Kelly</title>
		<link>http://www.frank-verhoeven.com/using-session-in-wordpress/comment-page-9/#comment-29690</link>
		<dc:creator>Kelly</dc:creator>
		<pubDate>Thu, 22 Dec 2011 08:41:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.frank-verhoeven.com/?p=158#comment-29690</guid>
		<description>I can set my sessions fine and they work on that page but if I go to another page I loose them. I tried removing the reference to sessions in the load.php but that didn&#039;t help.  Is there something I am missing? Do I need to make Sessions global somewhere?</description>
		<content:encoded><![CDATA[<p>I can set my sessions fine and they work on that page but if I go to another page I loose them. I tried removing the reference to sessions in the load.php but that didn&#8217;t help.  Is there something I am missing? Do I need to make Sessions global somewhere?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Danny</title>
		<link>http://www.frank-verhoeven.com/using-session-in-wordpress/comment-page-9/#comment-29689</link>
		<dc:creator>Danny</dc:creator>
		<pubDate>Wed, 14 Dec 2011 12:44:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.frank-verhoeven.com/?p=158#comment-29689</guid>
		<description>Thanks man.You are a star!Had spent hours trying to figure this out.Your solution works well.</description>
		<content:encoded><![CDATA[<p>Thanks man.You are a star!Had spent hours trying to figure this out.Your solution works well.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Karen Sullivan</title>
		<link>http://www.frank-verhoeven.com/using-session-in-wordpress/comment-page-9/#comment-29685</link>
		<dc:creator>Karen Sullivan</dc:creator>
		<pubDate>Tue, 06 Dec 2011 15:12:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.frank-verhoeven.com/?p=158#comment-29685</guid>
		<description>In wp-includes/load.php, removed references to $_SESSION where $_GLOBALS[$k] is nulled and unset.

Thank you</description>
		<content:encoded><![CDATA[<p>In wp-includes/load.php, removed references to $_SESSION where $_GLOBALS[$k] is nulled and unset.</p>
<p>Thank you</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Karen Sullivan</title>
		<link>http://www.frank-verhoeven.com/using-session-in-wordpress/comment-page-9/#comment-29684</link>
		<dc:creator>Karen Sullivan</dc:creator>
		<pubDate>Tue, 06 Dec 2011 06:39:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.frank-verhoeven.com/?p=158#comment-29684</guid>
		<description>I seem to be the only person where your solution does not work.  Newbie here so it might well be operator error.

I was using ob_start / if (session_id == &#039;&#039;) start_session in an include file used by all the pages - that didn&#039;t work
Changed the wp-config.php file per your suggestion.  that didn&#039;t work -- removed by code from the include file and that didn&#039;t work

Running 3.2.1 with the wptdacaiberry theme

Here&#039;s the .htaccess file:

# BEGIN WordPress

   RewriteEngine On
#   Options +FollowSymLinks
   RewriteBase /
   RewriteRule ^index\.php$ - [L]
   RewriteCond %{REQUEST_FILENAME} !-f
   RewriteCond %{REQUEST_FILENAME} !-d
   RewriteRule . /index.php [L]

# END WordPress

I apologize for pestering you with this.  Please let me know where I might ask this question. 

Thank you</description>
		<content:encoded><![CDATA[<p>I seem to be the only person where your solution does not work.  Newbie here so it might well be operator error.</p>
<p>I was using ob_start / if (session_id == &#8221;) start_session in an include file used by all the pages &#8211; that didn&#8217;t work<br />
Changed the wp-config.php file per your suggestion.  that didn&#8217;t work &#8212; removed by code from the include file and that didn&#8217;t work</p>
<p>Running 3.2.1 with the wptdacaiberry theme</p>
<p>Here&#8217;s the .htaccess file:</p>
<p># BEGIN WordPress</p>
<p>   RewriteEngine On<br />
#   Options +FollowSymLinks<br />
   RewriteBase /<br />
   RewriteRule ^index\.php$ &#8211; [L]<br />
   RewriteCond %{REQUEST_FILENAME} !-f<br />
   RewriteCond %{REQUEST_FILENAME} !-d<br />
   RewriteRule . /index.php [L]</p>
<p># END WordPress</p>
<p>I apologize for pestering you with this.  Please let me know where I might ask this question. </p>
<p>Thank you</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jake Broughton</title>
		<link>http://www.frank-verhoeven.com/using-session-in-wordpress/comment-page-9/#comment-29683</link>
		<dc:creator>Jake Broughton</dc:creator>
		<pubDate>Fri, 02 Dec 2011 13:07:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.frank-verhoeven.com/?p=158#comment-29683</guid>
		<description>@Mike Thanks, good solution

Does the session not need to be closed afterwards?
If so, how do I do that?</description>
		<content:encoded><![CDATA[<p>@Mike Thanks, good solution</p>
<p>Does the session not need to be closed afterwards?<br />
If so, how do I do that?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mvied</title>
		<link>http://www.frank-verhoeven.com/using-session-in-wordpress/comment-page-9/#comment-29681</link>
		<dc:creator>Mvied</dc:creator>
		<pubDate>Fri, 25 Nov 2011 16:35:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.frank-verhoeven.com/?p=158#comment-29681</guid>
		<description>You can place the code snippet in the functions.php of your theme, or create a plugin in wp-content/plugins and your change won&#039;t be lost when upgrading.</description>
		<content:encoded><![CDATA[<p>You can place the code snippet in the functions.php of your theme, or create a plugin in wp-content/plugins and your change won&#8217;t be lost when upgrading.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Erick</title>
		<link>http://www.frank-verhoeven.com/using-session-in-wordpress/comment-page-9/#comment-29680</link>
		<dc:creator>Erick</dc:creator>
		<pubDate>Thu, 24 Nov 2011 19:05:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.frank-verhoeven.com/?p=158#comment-29680</guid>
		<description>Oh man thxxxx.... I am brazilian and i was looking for the solution to the day. Sorry for google translate.</description>
		<content:encoded><![CDATA[<p>Oh man thxxxx&#8230;. I am brazilian and i was looking for the solution to the day. Sorry for google translate.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bala</title>
		<link>http://www.frank-verhoeven.com/using-session-in-wordpress/comment-page-9/#comment-29679</link>
		<dc:creator>Bala</dc:creator>
		<pubDate>Wed, 23 Nov 2011 08:23:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.frank-verhoeven.com/?p=158#comment-29679</guid>
		<description>It&#039;s working in local server.. but session has not set in remote server.... how to solve it.

Thanks
Bala</description>
		<content:encoded><![CDATA[<p>It&#8217;s working in local server.. but session has not set in remote server&#8230;. how to solve it.</p>
<p>Thanks<br />
Bala</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike</title>
		<link>http://www.frank-verhoeven.com/using-session-in-wordpress/comment-page-8/#comment-29678</link>
		<dc:creator>Mike</dc:creator>
		<pubDate>Sat, 19 Nov 2011 12:43:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.frank-verhoeven.com/?p=158#comment-29678</guid>
		<description>Or use functions.php:

if ( !session_id() )
add_action( &#039;init&#039;, &#039;session_start&#039; );</description>
		<content:encoded><![CDATA[<p>Or use functions.php:</p>
<p>if ( !session_id() )<br />
add_action( &#8216;init&#8217;, &#8216;session_start&#8217; );</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Oliver</title>
		<link>http://www.frank-verhoeven.com/using-session-in-wordpress/comment-page-8/#comment-29676</link>
		<dc:creator>Oliver</dc:creator>
		<pubDate>Fri, 18 Nov 2011 07:17:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.frank-verhoeven.com/?p=158#comment-29676</guid>
		<description>Thanks a lot. It can be so simple.</description>
		<content:encoded><![CDATA[<p>Thanks a lot. It can be so simple.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

