<?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: Building Browsergames: forcing users to log in (PHP)</title>
	<atom:link href="http://buildingbrowsergames.com/2008/06/24/building-browsergames-forcing-users-to-log-in-php/feed/" rel="self" type="application/rss+xml" />
	<link>http://buildingbrowsergames.com/2008/06/24/building-browsergames-forcing-users-to-log-in-php/</link>
	<description>Ever wanted to build a browsergame?</description>
	<lastBuildDate>Wed, 10 Mar 2010 20:26:23 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: kic</title>
		<link>http://buildingbrowsergames.com/2008/06/24/building-browsergames-forcing-users-to-log-in-php/comment-page-1/#comment-747</link>
		<dc:creator>kic</dc:creator>
		<pubDate>Wed, 10 Mar 2010 20:26:23 +0000</pubDate>
		<guid isPermaLink="false">http://buildingbrowsergames.com/?p=71#comment-747</guid>
		<description>What about storing user&#039;s IP in the session variable when they log in additionally and check whether it matches current IP on every login check? Wouldn&#039;t it make the whole process a bit safer?</description>
		<content:encoded><![CDATA[<p>What about storing user&#39;s IP in the session variable when they log in additionally and check whether it matches current IP on every login check? Wouldn&#39;t it make the whole process a bit safer?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: MrLollige</title>
		<link>http://buildingbrowsergames.com/2008/06/24/building-browsergames-forcing-users-to-log-in-php/comment-page-1/#comment-612</link>
		<dc:creator>MrLollige</dc:creator>
		<pubDate>Sat, 14 Mar 2009 23:10:07 +0000</pubDate>
		<guid isPermaLink="false">http://buildingbrowsergames.com/?p=71#comment-612</guid>
		<description>I expected sessions were just a form of standard cookies. But it seems they are not, and secure as you said :)&lt;br&gt;Thanks for sharing this information!</description>
		<content:encoded><![CDATA[<p>I expected sessions were just a form of standard cookies. But it seems they are not, and secure as you said <img src='http://buildingbrowsergames.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> <br />Thanks for sharing this information!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: MrLollige</title>
		<link>http://buildingbrowsergames.com/2008/06/24/building-browsergames-forcing-users-to-log-in-php/comment-page-1/#comment-611</link>
		<dc:creator>MrLollige</dc:creator>
		<pubDate>Sat, 14 Mar 2009 23:03:12 +0000</pubDate>
		<guid isPermaLink="false">http://buildingbrowsergames.com/?p=71#comment-611</guid>
		<description>Ill do some research on phps sessions function, that will get me more information :D&lt;br&gt;Thanks again for your reply!&lt;br&gt;&lt;br&gt;(Still even an encrypted cookie is copyable. If you see a computer where someone is logged in, you could copy the cookie and use it yourself forever. But I am not planning on working with session IDs -_-)</description>
		<content:encoded><![CDATA[<p>Ill do some research on phps sessions function, that will get me more information <img src='http://buildingbrowsergames.com/blog/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> <br />Thanks again for your reply!</p>
<p>(Still even an encrypted cookie is copyable. If you see a computer where someone is logged in, you could copy the cookie and use it yourself forever. But I am not planning on working with session IDs -_-)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Luke</title>
		<link>http://buildingbrowsergames.com/2008/06/24/building-browsergames-forcing-users-to-log-in-php/comment-page-1/#comment-610</link>
		<dc:creator>Luke</dc:creator>
		<pubDate>Sat, 14 Mar 2009 22:06:18 +0000</pubDate>
		<guid isPermaLink="false">http://buildingbrowsergames.com/?p=71#comment-610</guid>
		<description>Realistically, any authentication system you build is unsecure - but PHP&#039;s&lt;br&gt;sessions are &#039;safe enough&#039;. As far as I&#039;m aware(although I&#039;m sure someone&lt;br&gt;will correct me if I&#039;m wrong), sessions are stored in an encrypted format in&lt;br&gt;the cookie - which makes it a little harder for an attacker to just create a&lt;br&gt;cookie with your username inside it.&lt;br&gt;Storing the ID does seem like a better way to do it, if you&#039;re going to need&lt;br&gt;the ID very often - it&#039;s definitely faster to retrieve something from a&lt;br&gt;cookie than the database.</description>
		<content:encoded><![CDATA[<p>Realistically, any authentication system you build is unsecure &#8211; but PHP&#39;s<br />sessions are &#39;safe enough&#39;. As far as I&#39;m aware(although I&#39;m sure someone<br />will correct me if I&#39;m wrong), sessions are stored in an encrypted format in<br />the cookie &#8211; which makes it a little harder for an attacker to just create a<br />cookie with your username inside it.<br />Storing the ID does seem like a better way to do it, if you&#39;re going to need<br />the ID very often &#8211; it&#39;s definitely faster to retrieve something from a<br />cookie than the database.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: MrLollige</title>
		<link>http://buildingbrowsergames.com/2008/06/24/building-browsergames-forcing-users-to-log-in-php/comment-page-1/#comment-370</link>
		<dc:creator>MrLollige</dc:creator>
		<pubDate>Sat, 14 Mar 2009 18:10:07 +0000</pubDate>
		<guid isPermaLink="false">http://buildingbrowsergames.com/?p=71#comment-370</guid>
		<description>I expected sessions were just a form of standard cookies. But it seems they are not, and secure as you said :)&lt;br&gt;Thanks for sharing this information!</description>
		<content:encoded><![CDATA[<p>I expected sessions were just a form of standard cookies. But it seems they are not, and secure as you said <img src='http://buildingbrowsergames.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> <br />Thanks for sharing this information!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: MrLollige</title>
		<link>http://buildingbrowsergames.com/2008/06/24/building-browsergames-forcing-users-to-log-in-php/comment-page-1/#comment-367</link>
		<dc:creator>MrLollige</dc:creator>
		<pubDate>Sat, 14 Mar 2009 18:03:12 +0000</pubDate>
		<guid isPermaLink="false">http://buildingbrowsergames.com/?p=71#comment-367</guid>
		<description>Ill do some research on phps sessions function, that will get me more information :D&lt;br&gt;Thanks again for your reply!&lt;br&gt;&lt;br&gt;(Still even an encrypted cookie is copyable. If you see a computer where someone is logged in, you could copy the cookie and use it yourself forever. But I am not planning on working with session IDs -_-)</description>
		<content:encoded><![CDATA[<p>Ill do some research on phps sessions function, that will get me more information <img src='http://buildingbrowsergames.com/blog/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> <br />Thanks again for your reply!</p>
<p>(Still even an encrypted cookie is copyable. If you see a computer where someone is logged in, you could copy the cookie and use it yourself forever. But I am not planning on working with session IDs -_-)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Luke</title>
		<link>http://buildingbrowsergames.com/2008/06/24/building-browsergames-forcing-users-to-log-in-php/comment-page-1/#comment-363</link>
		<dc:creator>Luke</dc:creator>
		<pubDate>Sat, 14 Mar 2009 17:06:18 +0000</pubDate>
		<guid isPermaLink="false">http://buildingbrowsergames.com/?p=71#comment-363</guid>
		<description>Realistically, any authentication system you build is unsecure - but PHP&#039;s&lt;br&gt;sessions are &#039;safe enough&#039;. As far as I&#039;m aware(although I&#039;m sure someone&lt;br&gt;will correct me if I&#039;m wrong), sessions are stored in an encrypted format in&lt;br&gt;the cookie - which makes it a little harder for an attacker to just create a&lt;br&gt;cookie with your username inside it.&lt;br&gt;Storing the ID does seem like a better way to do it, if you&#039;re going to need&lt;br&gt;the ID very often - it&#039;s definitely faster to retrieve something from a&lt;br&gt;cookie than the database.</description>
		<content:encoded><![CDATA[<p>Realistically, any authentication system you build is unsecure &#8211; but PHP&#39;s<br />sessions are &#39;safe enough&#39;. As far as I&#39;m aware(although I&#39;m sure someone<br />will correct me if I&#39;m wrong), sessions are stored in an encrypted format in<br />the cookie &#8211; which makes it a little harder for an attacker to just create a<br />cookie with your username inside it.<br />Storing the ID does seem like a better way to do it, if you&#39;re going to need<br />the ID very often &#8211; it&#39;s definitely faster to retrieve something from a<br />cookie than the database.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: MrLollige</title>
		<link>http://buildingbrowsergames.com/2008/06/24/building-browsergames-forcing-users-to-log-in-php/comment-page-1/#comment-358</link>
		<dc:creator>MrLollige</dc:creator>
		<pubDate>Sat, 14 Mar 2009 10:17:29 +0000</pubDate>
		<guid isPermaLink="false">http://buildingbrowsergames.com/?p=71#comment-358</guid>
		<description>I just realized: Isn&#039;t this very unsercure? If I create a cookie myself that has your username in it, I am automatically logged in on your account right?&lt;br&gt;&lt;br&gt;And why do this instead of just checking if there still is a cookie? I do not need to know the user ID anyway.&lt;br&gt;Also, in my version of the game I am making with your tutorial, I stored the ID in the cookie too, because you really need it often. Or is retrieving data from the database faster/better than retrieving data from a cookie?&lt;br&gt;&lt;br&gt;Please explain what and why you did this :)</description>
		<content:encoded><![CDATA[<p>I just realized: Isn&#39;t this very unsercure? If I create a cookie myself that has your username in it, I am automatically logged in on your account right?</p>
<p>And why do this instead of just checking if there still is a cookie? I do not need to know the user ID anyway.<br />Also, in my version of the game I am making with your tutorial, I stored the ID in the cookie too, because you really need it often. Or is retrieving data from the database faster/better than retrieving data from a cookie?</p>
<p>Please explain what and why you did this <img src='http://buildingbrowsergames.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
</channel>
</rss>
