<?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>Tue, 27 Jul 2010 10:35:13 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: Max</title>
		<link>http://www.frank-verhoeven.com/using-session-in-wordpress/#comment-20025</link>
		<dc:creator>Max</dc:creator>
		<pubDate>Fri, 23 Jul 2010 23:01:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.frank-verhoeven.com/?p=158#comment-20025</guid>
		<description>Hi all! I am developing a theme for commercial use and require sessions to run to add some functionality that is needed. 
At the moment wp_unregister_GLOBALS() seem to be a great problem for me, since modifying wp-setting.php manually is not an option. Has anyone got any ideas on how to add SESSIONS global variable to a $noUnset list, by coding only inside my theme folder? Or maybe desable wp_unregister_GLOBALS()? Or perhaps deactivate register_globals in php setting file of the server? But remember I am limited to doing that by code only from inside my theme folder. Any advise on this will be much appreciated, I&#039;ve been trying to find a solution for a week now and getting very frastrated at wordpress...
Cheers
Max</description>
		<content:encoded><![CDATA[<p>Hi all! I am developing a theme for commercial use and require sessions to run to add some functionality that is needed.<br />
At the moment wp_unregister_GLOBALS() seem to be a great problem for me, since modifying wp-setting.php manually is not an option. Has anyone got any ideas on how to add SESSIONS global variable to a $noUnset list, by coding only inside my theme folder? Or maybe desable wp_unregister_GLOBALS()? Or perhaps deactivate register_globals in php setting file of the server? But remember I am limited to doing that by code only from inside my theme folder. Any advise on this will be much appreciated, I&#8217;ve been trying to find a solution for a week now and getting very frastrated at wordpress&#8230;<br />
Cheers<br />
Max</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Naoshad Nayeem</title>
		<link>http://www.frank-verhoeven.com/using-session-in-wordpress/#comment-20009</link>
		<dc:creator>Naoshad Nayeem</dc:creator>
		<pubDate>Thu, 22 Jul 2010 13:06:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.frank-verhoeven.com/?p=158#comment-20009</guid>
		<description>Nice share. Thanks for posting!</description>
		<content:encoded><![CDATA[<p>Nice share. Thanks for posting!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Muhammad Salman Raza</title>
		<link>http://www.frank-verhoeven.com/using-session-in-wordpress/#comment-19995</link>
		<dc:creator>Muhammad Salman Raza</dc:creator>
		<pubDate>Wed, 21 Jul 2010 13:44:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.frank-verhoeven.com/?p=158#comment-19995</guid>
		<description>You saved my day. Thanks for the help :)</description>
		<content:encoded><![CDATA[<p>You saved my day. Thanks for the help <img src='http://www.frank-verhoeven.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Yuvraj</title>
		<link>http://www.frank-verhoeven.com/using-session-in-wordpress/#comment-19926</link>
		<dc:creator>Yuvraj</dc:creator>
		<pubDate>Wed, 14 Jul 2010 07:31:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.frank-verhoeven.com/?p=158#comment-19926</guid>
		<description>function cp_admin_init() {
if (!session_id())
session_start();
}

add_action(‘init’, ‘cp_admin_init’);

Its working....

thanks all.</description>
		<content:encoded><![CDATA[<p>function cp_admin_init() {<br />
if (!session_id())<br />
session_start();<br />
}</p>
<p>add_action(‘init’, ‘cp_admin_init’);</p>
<p>Its working&#8230;.</p>
<p>thanks all.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David</title>
		<link>http://www.frank-verhoeven.com/using-session-in-wordpress/#comment-19904</link>
		<dc:creator>David</dc:creator>
		<pubDate>Tue, 13 Jul 2010 03:29:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.frank-verhoeven.com/?p=158#comment-19904</guid>
		<description>Frank THANK YOU SO MUCH!

I was trying to figure out why I couldn&#039;t keep the session between my main site and my blog and you&#039;ve solved it for me!

Cheers!</description>
		<content:encoded><![CDATA[<p>Frank THANK YOU SO MUCH!</p>
<p>I was trying to figure out why I couldn&#8217;t keep the session between my main site and my blog and you&#8217;ve solved it for me!</p>
<p>Cheers!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hikari</title>
		<link>http://www.frank-verhoeven.com/using-session-in-wordpress/#comment-19493</link>
		<dc:creator>Hikari</dc:creator>
		<pubDate>Mon, 07 Jun 2010 05:34:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.frank-verhoeven.com/?p=158#comment-19493</guid>
		<description>But will you ask your plugin users to do the same? o.O

Why don&#039;t put it inside your plugin, just before you need the session data?

If it&#039;s not set, you set them and consider the user just got to the site. If ID is available, just use it normally because it was started somewhere earlier.</description>
		<content:encoded><![CDATA[<p>But will you ask your plugin users to do the same? o.O</p>
<p>Why don&#8217;t put it inside your plugin, just before you need the session data?</p>
<p>If it&#8217;s not set, you set them and consider the user just got to the site. If ID is available, just use it normally because it was started somewhere earlier.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John</title>
		<link>http://www.frank-verhoeven.com/using-session-in-wordpress/#comment-19345</link>
		<dc:creator>John</dc:creator>
		<pubDate>Fri, 28 May 2010 07:07:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.frank-verhoeven.com/?p=158#comment-19345</guid>
		<description>Hello Frank,
Thanks for the session information that is really useful.
I am not quite familiar about how to use session.
I wondered if you could get the user name from each user login to the website.

Thanks.

john</description>
		<content:encoded><![CDATA[<p>Hello Frank,<br />
Thanks for the session information that is really useful.<br />
I am not quite familiar about how to use session.<br />
I wondered if you could get the user name from each user login to the website.</p>
<p>Thanks.</p>
<p>john</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brett</title>
		<link>http://www.frank-verhoeven.com/using-session-in-wordpress/#comment-19013</link>
		<dc:creator>Brett</dc:creator>
		<pubDate>Sun, 09 May 2010 17:20:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.frank-verhoeven.com/?p=158#comment-19013</guid>
		<description>I tried all methods on this page and found that Andy Potanin&#039;s (October 5th, 2009 at 2:27 am) solution worked the best.  Just add_action() in your plugin initialize file.</description>
		<content:encoded><![CDATA[<p>I tried all methods on this page and found that Andy Potanin&#8217;s (October 5th, 2009 at 2:27 am) solution worked the best.  Just add_action() in your plugin initialize file.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: BB</title>
		<link>http://www.frank-verhoeven.com/using-session-in-wordpress/#comment-18585</link>
		<dc:creator>BB</dc:creator>
		<pubDate>Sun, 11 Apr 2010 16:58:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.frank-verhoeven.com/?p=158#comment-18585</guid>
		<description>This works fine with the built in session function but does not for me when using a custom session handler -storing session in a db.

I am including it on the top of wp-config.php as with this example.

I&#039;ve tried the wp-settings.php adjustment for variables to unset and am really scratching my head on this one.... any ideas?

thanks!</description>
		<content:encoded><![CDATA[<p>This works fine with the built in session function but does not for me when using a custom session handler -storing session in a db.</p>
<p>I am including it on the top of wp-config.php as with this example.</p>
<p>I&#8217;ve tried the wp-settings.php adjustment for variables to unset and am really scratching my head on this one&#8230;. any ideas?</p>
<p>thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: capsx</title>
		<link>http://www.frank-verhoeven.com/using-session-in-wordpress/#comment-18543</link>
		<dc:creator>capsx</dc:creator>
		<pubDate>Thu, 08 Apr 2010 13:47:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.frank-verhoeven.com/?p=158#comment-18543</guid>
		<description>there is no need for
if (!session_id())

u must use only session_start();</description>
		<content:encoded><![CDATA[<p>there is no need for<br />
if (!session_id())</p>
<p>u must use only session_start();</p>
]]></content:encoded>
	</item>
</channel>
</rss>
