<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[PunBB Forums — How is cookie read?]]></title>
		<link>https://punbb.informer.com/forums/topic/15538/how-is-cookie-read/</link>
		<atom:link href="https://punbb.informer.com/forums/feed/rss/topic/15538/" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in How is cookie read?.]]></description>
		<lastBuildDate>Sun, 15 Apr 2007 21:36:24 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: How is cookie read?]]></title>
			<link>https://punbb.informer.com/forums/post/91948/#p91948</link>
			<description><![CDATA[<div class="quotebox"><cite>Frank H wrote:</cite><blockquote><p>hmm ... are you relying on cookie id to enter information into the database? (if so a security risk, as ppl can make their own cookies)</p><p>(it&#039;s much better to use PunBB&#039;s own variables, as those has been checked so that the user is who he says he is)</p></blockquote></div><p>Hmm, could you explain more about these variables? Can I contact you in another form, such as an IM client? I want to talk to someone personally who knows PunBB very well so I can better understand it.</p>]]></description>
			<author><![CDATA[null@example.com (Sam Rusch)]]></author>
			<pubDate>Sun, 15 Apr 2007 21:36:24 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/91948/#p91948</guid>
		</item>
		<item>
			<title><![CDATA[Re: How is cookie read?]]></title>
			<link>https://punbb.informer.com/forums/post/91939/#p91939</link>
			<description><![CDATA[<p>hmm ... are you relying on cookie id to enter information into the database? (if so a security risk, as ppl can make their own cookies)</p><p>(it&#039;s much better to use PunBB&#039;s own variables, as those has been checked so that the user is who he says he is)</p>]]></description>
			<author><![CDATA[null@example.com (Frank H)]]></author>
			<pubDate>Sun, 15 Apr 2007 20:21:10 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/91939/#p91939</guid>
		</item>
		<item>
			<title><![CDATA[Re: How is cookie read?]]></title>
			<link>https://punbb.informer.com/forums/post/91935/#p91935</link>
			<description><![CDATA[<p>This is something that I will be using a lot in my next mod to PunBB. I hope all goes well, and I can do something good this time <img src="https://punbb.informer.com/forums/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></description>
			<author><![CDATA[null@example.com (Sam Rusch)]]></author>
			<pubDate>Sun, 15 Apr 2007 19:57:13 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/91935/#p91935</guid>
		</item>
		<item>
			<title><![CDATA[Re: How is cookie read?]]></title>
			<link>https://punbb.informer.com/forums/post/91924/#p91924</link>
			<description><![CDATA[<p>No problem <img src="https://punbb.informer.com/forums/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></description>
			<author><![CDATA[null@example.com (Smartys)]]></author>
			<pubDate>Sun, 15 Apr 2007 19:09:15 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/91924/#p91924</guid>
		</item>
		<item>
			<title><![CDATA[Re: How is cookie read?]]></title>
			<link>https://punbb.informer.com/forums/post/91921/#p91921</link>
			<description><![CDATA[<div class="quotebox"><cite>Smartys wrote:</cite><blockquote><p>This is code taken directly from PunBB <img src="https://punbb.informer.com/forums/img/smilies/wink.png" width="15" height="15" alt="wink" /><br /></p><div class="codebox"><pre><code>    // If a cookie is set, we get the user_id and password hash from it
    if (isset($_COOKIE[$cookie_name]))
        list($cookie[&#039;user_id&#039;], $cookie[&#039;password_hash&#039;]) = @unserialize($_COOKIE[$cookie_name]);</code></pre></div></blockquote></div><p>I saw that, I swear, but I did not know if that was the right thing to look at. Wow, now I look totally stupid. Thank you.</p>]]></description>
			<author><![CDATA[null@example.com (Sam Rusch)]]></author>
			<pubDate>Sun, 15 Apr 2007 18:53:07 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/91921/#p91921</guid>
		</item>
		<item>
			<title><![CDATA[Re: How is cookie read?]]></title>
			<link>https://punbb.informer.com/forums/post/91917/#p91917</link>
			<description><![CDATA[<p>This is code taken directly from PunBB <img src="https://punbb.informer.com/forums/img/smilies/wink.png" width="15" height="15" alt="wink" /><br /></p><div class="codebox"><pre><code>    // If a cookie is set, we get the user_id and password hash from it
    if (isset($_COOKIE[$cookie_name]))
        list($cookie[&#039;user_id&#039;], $cookie[&#039;password_hash&#039;]) = @unserialize($_COOKIE[$cookie_name]);</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (Smartys)]]></author>
			<pubDate>Sun, 15 Apr 2007 18:26:54 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/91917/#p91917</guid>
		</item>
		<item>
			<title><![CDATA[Re: How is cookie read?]]></title>
			<link>https://punbb.informer.com/forums/post/91916/#p91916</link>
			<description><![CDATA[<div class="quotebox"><cite>Smartys wrote:</cite><blockquote><div class="quotebox"><cite>Sam Rusch wrote:</cite><blockquote><p>Hello, I&#039;m making additions to my copy of PunBB, and I wanted to know how the read the cookie that is set. I&#039;ve read the code in the functions.php file numerous times, but I can&#039;t figure out how the cookie is actually read. I know that the &quot;userid&quot; is set in the cookie, but how would I go about extracting that value?</p><p>Thank you.</p></blockquote></div><p>The cookie is a serialized string which contains an array with 2 elements: the user_id and the password_hash</p></blockquote></div><p>I know that, but how would I be able to extract those values seperately? Or, actually, what I want to do is just take out the user_id value so I can add some things to the forums. Begin to make my own mods.</p>]]></description>
			<author><![CDATA[null@example.com (Sam Rusch)]]></author>
			<pubDate>Sun, 15 Apr 2007 18:23:39 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/91916/#p91916</guid>
		</item>
		<item>
			<title><![CDATA[Re: How is cookie read?]]></title>
			<link>https://punbb.informer.com/forums/post/91893/#p91893</link>
			<description><![CDATA[<div class="quotebox"><cite>Sam Rusch wrote:</cite><blockquote><p>Hello, I&#039;m making additions to my copy of PunBB, and I wanted to know how the read the cookie that is set. I&#039;ve read the code in the functions.php file numerous times, but I can&#039;t figure out how the cookie is actually read. I know that the &quot;userid&quot; is set in the cookie, but how would I go about extracting that value?</p><p>Thank you.</p></blockquote></div><p>The cookie is a serialized string which contains an array with 2 elements: the user_id and the password_hash</p>]]></description>
			<author><![CDATA[null@example.com (Smartys)]]></author>
			<pubDate>Sun, 15 Apr 2007 11:35:07 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/91893/#p91893</guid>
		</item>
		<item>
			<title><![CDATA[Re: How is cookie read?]]></title>
			<link>https://punbb.informer.com/forums/post/91883/#p91883</link>
			<description><![CDATA[<div class="quotebox"><cite>MattF wrote:</cite><blockquote><div class="quotebox"><cite>Sam Rusch wrote:</cite><blockquote><p>This is what I am currently using and all it does is show the error message.</p><div class="codebox"><pre><code>$result = $db-&gt;query(&#039;SELECT contactban FROM &#039;.$db-&gt;prefix.&#039;users WHERE id=&#039;.$cur_user[&#039;user_id&#039;]) or error(&#039;Unable to select from database&#039;, __FILE__, __LINE__, $db-&gt;error());</code></pre></div></blockquote></div><p>There is no contactban value in the database:</p><p><a href="http://punbb.org/docs/dev.html">http://punbb.org/docs/dev.html</a></p></blockquote></div><p>I know, it is something that I added in myself already.</p>]]></description>
			<author><![CDATA[null@example.com (Sam Rusch)]]></author>
			<pubDate>Sun, 15 Apr 2007 06:00:59 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/91883/#p91883</guid>
		</item>
		<item>
			<title><![CDATA[Re: How is cookie read?]]></title>
			<link>https://punbb.informer.com/forums/post/91867/#p91867</link>
			<description><![CDATA[<p>Moved to PunBB Discussion</p>]]></description>
			<author><![CDATA[null@example.com (Smartys)]]></author>
			<pubDate>Sun, 15 Apr 2007 01:18:37 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/91867/#p91867</guid>
		</item>
		<item>
			<title><![CDATA[Re: How is cookie read?]]></title>
			<link>https://punbb.informer.com/forums/post/91860/#p91860</link>
			<description><![CDATA[<div class="quotebox"><cite>Sam Rusch wrote:</cite><blockquote><p>This is what I am currently using and all it does is show the error message.</p><div class="codebox"><pre><code>$result = $db-&gt;query(&#039;SELECT contactban FROM &#039;.$db-&gt;prefix.&#039;users WHERE id=&#039;.$cur_user[&#039;user_id&#039;]) or error(&#039;Unable to select from database&#039;, __FILE__, __LINE__, $db-&gt;error());</code></pre></div></blockquote></div><p>There is no contactban value in the database:</p><p><a href="http://punbb.org/docs/dev.html">http://punbb.org/docs/dev.html</a></p>]]></description>
			<author><![CDATA[null@example.com (MattF)]]></author>
			<pubDate>Sat, 14 Apr 2007 23:59:35 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/91860/#p91860</guid>
		</item>
		<item>
			<title><![CDATA[Re: How is cookie read?]]></title>
			<link>https://punbb.informer.com/forums/post/91823/#p91823</link>
			<description><![CDATA[<p>This is what I am currently using and all it does is show the error message.</p><div class="codebox"><pre><code>$result = $db-&gt;query(&#039;SELECT contactban FROM &#039;.$db-&gt;prefix.&#039;users WHERE id=&#039;.$cur_user[&#039;user_id&#039;]) or error(&#039;Unable to select from database&#039;, __FILE__, __LINE__, $db-&gt;error());</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (Sam Rusch)]]></author>
			<pubDate>Sat, 14 Apr 2007 17:09:19 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/91823/#p91823</guid>
		</item>
		<item>
			<title><![CDATA[How is cookie read?]]></title>
			<link>https://punbb.informer.com/forums/post/91818/#p91818</link>
			<description><![CDATA[<p>Hello, I&#039;m making additions to my copy of PunBB, and I wanted to know how the read the cookie that is set. I&#039;ve read the code in the functions.php file numerous times, but I can&#039;t figure out how the cookie is actually read. I know that the &quot;userid&quot; is set in the cookie, but how would I go about extracting that value?</p><p>Thank you.</p>]]></description>
			<author><![CDATA[null@example.com (Sam Rusch)]]></author>
			<pubDate>Sat, 14 Apr 2007 16:37:42 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/91818/#p91818</guid>
		</item>
	</channel>
</rss>
