<?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: PHP Session class with crypted cookies.</title>
	<atom:link href="http://www.barattalo.it/2009/12/21/php-session-class-with-crypted-cookies/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.barattalo.it/2009/12/21/php-session-class-with-crypted-cookies/</link>
	<description>code snippets, classes and other stuff for developers</description>
	<lastBuildDate>Fri, 18 Nov 2011 12:00:20 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Giulio Pons</title>
		<link>http://www.barattalo.it/2009/12/21/php-session-class-with-crypted-cookies/comment-page-1/#comment-4546</link>
		<dc:creator>Giulio Pons</dc:creator>
		<pubDate>Fri, 10 Dec 2010 17:55:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.barattalo.it/?p=233#comment-4546</guid>
		<description>Yes this version has some errors, I have to upload the fixed version, sorry!</description>
		<content:encoded><![CDATA[<p>Yes this version has some errors, I have to upload the fixed version, sorry!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Neotropic</title>
		<link>http://www.barattalo.it/2009/12/21/php-session-class-with-crypted-cookies/comment-page-1/#comment-4447</link>
		<dc:creator>Neotropic</dc:creator>
		<pubDate>Mon, 06 Dec 2010 23:13:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.barattalo.it/?p=233#comment-4447</guid>
		<description>Nice error checking. Nice to loose all that one writes.

Any ways....

Line 160...?
Take a closer look, calling a function that does not exist.
&#039;if ($this-&gt;is_registered($var)) {&#039;

Also....
Change: __construct ($cook = &quot;zipcook&quot;)
To: __construct ($cook)

Defaults to zipcook of you just do: new Session(); even though people may not.

Either set a sess value, or explain to set it as new Session(&#039;&#039;); if wanting to use sessions. Or hell... new Session(&#039;I CAN PUT ANYTHING HERE&#039;); to tell it to use sessions. But do other people, new people know?

Aside from that a great script!</description>
		<content:encoded><![CDATA[<p>Nice error checking. Nice to loose all that one writes.</p>
<p>Any ways&#8230;.</p>
<p>Line 160&#8230;?<br />
Take a closer look, calling a function that does not exist.<br />
&#8216;if ($this-&gt;is_registered($var)) {&#8216;</p>
<p>Also&#8230;.<br />
Change: __construct ($cook = &#8220;zipcook&#8221;)<br />
To: __construct ($cook)</p>
<p>Defaults to zipcook of you just do: new Session(); even though people may not.</p>
<p>Either set a sess value, or explain to set it as new Session(&#8221;); if wanting to use sessions. Or hell&#8230; new Session(&#8216;I CAN PUT ANYTHING HERE&#8217;); to tell it to use sessions. But do other people, new people know?</p>
<p>Aside from that a great script!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mehrdad</title>
		<link>http://www.barattalo.it/2009/12/21/php-session-class-with-crypted-cookies/comment-page-1/#comment-3385</link>
		<dc:creator>mehrdad</dc:creator>
		<pubDate>Sat, 09 Oct 2010 09:45:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.barattalo.it/?p=233#comment-3385</guid>
		<description>very good. thanks!</description>
		<content:encoded><![CDATA[<p>very good. thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kevin</title>
		<link>http://www.barattalo.it/2009/12/21/php-session-class-with-crypted-cookies/comment-page-1/#comment-2435</link>
		<dc:creator>kevin</dc:creator>
		<pubDate>Fri, 27 Aug 2010 06:12:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.barattalo.it/?p=233#comment-2435</guid>
		<description>Hi, I am having trouble using your cookie class with your zipcook encryption. I do 

$cookie = new Session(); 
$cookie-&gt;set(&quot;loginCookie&quot;, &quot;myvalue&quot;); //load page 1st time
//I can see the cookie named _KK_0;
//I delete the above code and RELOAD the page 2nd time
$cookie = new Session();
if($cookie-&gt;get(&quot;loginCookie&quot;) { //or get(&quot;_KK_0&quot;)
      echo &quot;Got the Cookie&quot;;
}
//This does not work, but If I do the same with $cookie = new Session(&quot;yes&quot;); the following line works $cookie-&gt;get(&quot;loginCookie&quot;);</description>
		<content:encoded><![CDATA[<p>Hi, I am having trouble using your cookie class with your zipcook encryption. I do </p>
<p>$cookie = new Session();<br />
$cookie-&gt;set(&#8220;loginCookie&#8221;, &#8220;myvalue&#8221;); //load page 1st time<br />
//I can see the cookie named _KK_0;<br />
//I delete the above code and RELOAD the page 2nd time<br />
$cookie = new Session();<br />
if($cookie-&gt;get(&#8220;loginCookie&#8221;) { //or get(&#8220;_KK_0&#8243;)<br />
      echo &#8220;Got the Cookie&#8221;;<br />
}<br />
//This does not work, but If I do the same with $cookie = new Session(&#8220;yes&#8221;); the following line works $cookie-&gt;get(&#8220;loginCookie&#8221;);</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tdude</title>
		<link>http://www.barattalo.it/2009/12/21/php-session-class-with-crypted-cookies/comment-page-1/#comment-673</link>
		<dc:creator>Tdude</dc:creator>
		<pubDate>Fri, 26 Mar 2010 09:49:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.barattalo.it/?p=233#comment-673</guid>
		<description>Hi!
Thanx for the excellent work. It&#039;s just what I need. You made my day!
Saluti da Svecia</description>
		<content:encoded><![CDATA[<p>Hi!<br />
Thanx for the excellent work. It&#8217;s just what I need. You made my day!<br />
Saluti da Svecia</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>http://www.barattalo.it/2009/12/21/php-session-class-with-crypted-cookies/comment-page-1/#comment-12</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Fri, 08 Jan 2010 08:43:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.barattalo.it/?p=233#comment-12</guid>
		<description>Sure. I didn&#039;t write it: since cookies are sent with headers you need to use the class at the beginning of your files. When you instantiate the session object you must have not written anything on the page. Before any output instantiate the class and set variables. You can read variables wherever you want.</description>
		<content:encoded><![CDATA[<p>Sure. I didn&#8217;t write it: since cookies are sent with headers you need to use the class at the beginning of your files. When you instantiate the session object you must have not written anything on the page. Before any output instantiate the class and set variables. You can read variables wherever you want.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: JasonDavis</title>
		<link>http://www.barattalo.it/2009/12/21/php-session-class-with-crypted-cookies/comment-page-1/#comment-11</link>
		<dc:creator>JasonDavis</dc:creator>
		<pubDate>Fri, 08 Jan 2010 02:29:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.barattalo.it/?p=233#comment-11</guid>
		<description>Hello I tried your example code class and the example to set and show but I get errors from running.  Warning: Cannot modify header information - headers already sent by (output started at C:\webserver\htdocs\friendproject2\labs\sessions\index.php:5) in C:\webserver\htdocs\friendproject2\labs\sessions\cookiesession.class.php on line 130  

When I look at line 130, it is the line that sets the cookie</description>
		<content:encoded><![CDATA[<p>Hello I tried your example code class and the example to set and show but I get errors from running.  Warning: Cannot modify header information &#8211; headers already sent by (output started at C:\webserver\htdocs\friendproject2\labs\sessions\index.php:5) in C:\webserver\htdocs\friendproject2\labs\sessions\cookiesession.class.php on line 130  </p>
<p>When I look at line 130, it is the line that sets the cookie</p>
]]></content:encoded>
	</item>
</channel>
</rss>

