<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" 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><atom:link href="https://bbgames.disqus.com/building_browsergames_forcing_users_to_log_in_php/latest.rss" rel="self"></atom:link><language>en</language><lastBuildDate>Wed, 10 Mar 2010 10:26:23 -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-38861303</link><description>&lt;p&gt;What about storing user's IP in the session variable when they log in additionally and check whether it matches current IP on every login check? Wouldn't it make the whole process a bit safer?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">kic</dc:creator><pubDate>Wed, 10 Mar 2010 10:26:23 -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-7216515</link><description>&lt;p&gt;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!&lt;/p&gt;</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>&lt;p&gt;Ill do some research on phps sessions function, that will get me more information :D&lt;br&gt;Thanks again for your reply!&lt;/p&gt;&lt;p&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 -_-)&lt;/p&gt;</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>&lt;p&gt;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.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Luke</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>&lt;p&gt;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;/p&gt;&lt;p&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;/p&gt;&lt;p&gt;Please explain what and why you did this :)&lt;/p&gt;</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>