<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"><channel><title>Building Browsergames - Latest Comments in Building Browsergames: forcing users to log in (PHP)</title><link>http://bbgames.disqus.com/</link><description></description><language>en</language><lastBuildDate>Sat, 14 Mar 2009 14:10:07 -0000</lastBuildDate><item><title>Re: Building Browsergames: forcing users to log in (PHP)</title><link>http://buildingbrowsergames.com/2008/06/24/building-browsergames-forcing-users-to-log-in-php/#comment-7216515</link><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><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">MrLollige</dc:creator><pubDate>Sat, 14 Mar 2009 14:10:07 -0000</pubDate></item><item><title>Re: Building Browsergames: forcing users to log in (PHP)</title><link>http://buildingbrowsergames.com/2008/06/24/building-browsergames-forcing-users-to-log-in-php/#comment-7216402</link><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><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">MrLollige</dc:creator><pubDate>Sat, 14 Mar 2009 14:03:12 -0000</pubDate></item><item><title>Re: Building Browsergames: forcing users to log in (PHP)</title><link>http://buildingbrowsergames.com/2008/06/24/building-browsergames-forcing-users-to-log-in-php/#comment-7215444</link><description>Realistically, any authentication system you build is unsecure - but PHP's&lt;br&gt;sessions are 'safe enough'. As far as I'm aware(although I'm sure someone&lt;br&gt;will correct me if I'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're going to need&lt;br&gt;the ID very often - it's definitely faster to retrieve something from a&lt;br&gt;cookie than the database.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">bbgames</dc:creator><pubDate>Sat, 14 Mar 2009 13:06:18 -0000</pubDate></item><item><title>Re: Building Browsergames: forcing users to log in (PHP)</title><link>http://buildingbrowsergames.com/2008/06/24/building-browsergames-forcing-users-to-log-in-php/#comment-7210630</link><description>I just realized: Isn'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><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">MrLollige</dc:creator><pubDate>Sat, 14 Mar 2009 06:17:29 -0000</pubDate></item></channel></rss>