<?xml version="1.0" encoding="iso-8859-1"?><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: Secure PHP login without database</title>
	<atom:link href="http://www.crankberryblog.com/2009/secure-php-login-without-database/feed" rel="self" type="application/rss+xml" />
	<link>http://www.crankberryblog.com/2009/secure-php-login-without-database</link>
	<description>Sharing ideas on web design, development and the internet economy</description>
	<lastBuildDate>Tue, 24 Jan 2012 19:43:34 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Jerry Low</title>
		<link>http://www.crankberryblog.com/2009/secure-php-login-without-database/comment-page-2#comment-2653</link>
		<dc:creator>Jerry Low</dc:creator>
		<pubDate>Thu, 19 Jan 2012 16:58:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.crankberryblog.com/?p=143#comment-2653</guid>
		<description>James,

Basically the script will ensure all your settings are valid before it&#039;ll work. The settings are all in _login_users.php

You have to conform to the comments I have there. And user names can only be alphanumeric with no whitespace (hyphen and underscore is ok).</description>
		<content:encoded><![CDATA[<p>James,</p>
<p>Basically the script will ensure all your settings are valid before it&#039;ll work. The settings are all in _login_users.php</p>
<p>You have to conform to the comments I have there. And user names can only be alphanumeric with no whitespace (hyphen and underscore is ok).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: James</title>
		<link>http://www.crankberryblog.com/2009/secure-php-login-without-database/comment-page-2#comment-2618</link>
		<dc:creator>James</dc:creator>
		<pubDate>Wed, 04 Jan 2012 22:04:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.crankberryblog.com/?p=143#comment-2618</guid>
		<description>Hey I tried to use this, but I can&#039;t seem to figure out how to login , sorry I really don&#039;t feel like having to search this up somewhere else -.-...

Whenever I go to the index.php it tell me that the admin settings are wrong, I know that the code for that is on page _login.php but how to I get a login form?</description>
		<content:encoded><![CDATA[<p>Hey I tried to use this, but I can&#039;t seem to figure out how to login , sorry I really don&#039;t feel like having to search this up somewhere else -.-&#8230;</p>
<p>Whenever I go to the index.php it tell me that the admin settings are wrong, I know that the code for that is on page _login.php but how to I get a login form?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alessandro Marinuzzi</title>
		<link>http://www.crankberryblog.com/2009/secure-php-login-without-database/comment-page-2#comment-2397</link>
		<dc:creator>Alessandro Marinuzzi</dc:creator>
		<pubDate>Wed, 14 Dec 2011 09:38:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.crankberryblog.com/?p=143#comment-2397</guid>
		<description>Hi! Thanks for sharing this great php login tutorial! I have some improvements... in each page that you want to protect add these lines:

&lt;pre lang=&quot;php&quot;&gt;
session_start();
header(&quot;Expires: Mon, 26 Jul 1997 05:00:00 GMT&quot;); #Date in the Past
header(&quot;Last-Modified: &quot; . gmdate(&quot;D, d M Y H:i:s&quot;) . &quot; GMT&quot;); #Always modified
header(&quot;Cache-Control: no-store, no-cache, must-revalidate&quot;); #HTTP/1.1
header(&quot;Cache-Control: post-check=0, pre-check=0&quot;, false);
header(&quot;Pragma: no-cache&quot;); #HTTP/1.0
require_once(&#039;_login.php&#039;);
if (!$login-&gt;verify_login($key_uid, $key_cid)) {
  header(&quot;Location: login.php&quot;);
  exit();
}
&lt;/pre&gt;

The first five headers avoid that another user that have the same session opened backs to previous page and posts again... the if statement verify if the user has logged in or not

Thanks again!!!</description>
		<content:encoded><![CDATA[<p>Hi! Thanks for sharing this great php login tutorial! I have some improvements&#8230; in each page that you want to protect add these lines:</p>
<pre lang="php">
session_start();
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); #Date in the Past
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); #Always modified
header("Cache-Control: no-store, no-cache, must-revalidate"); #HTTP/1.1
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache"); #HTTP/1.0
require_once('_login.php');
if (!$login-&gt;verify_login($key_uid, $key_cid)) {
  header("Location: login.php");
  exit();
}
</pre>
<p>The first five headers avoid that another user that have the same session opened backs to previous page and posts again&#8230; the if statement verify if the user has logged in or not</p>
<p>Thanks again!!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jonas luin</title>
		<link>http://www.crankberryblog.com/2009/secure-php-login-without-database/comment-page-2#comment-1440</link>
		<dc:creator>jonas luin</dc:creator>
		<pubDate>Sun, 30 Oct 2011 01:18:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.crankberryblog.com/?p=143#comment-1440</guid>
		<description>i cant stay logged in and have to re-enter my user and password all the time. Whats the problem?</description>
		<content:encoded><![CDATA[<p>i cant stay logged in and have to re-enter my user and password all the time. Whats the problem?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dumbledore27</title>
		<link>http://www.crankberryblog.com/2009/secure-php-login-without-database/comment-page-2#comment-1374</link>
		<dc:creator>Dumbledore27</dc:creator>
		<pubDate>Wed, 19 Oct 2011 14:04:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.crankberryblog.com/?p=143#comment-1374</guid>
		<description>One more question. Is there a way to do a log in page for this? So when a user fills out the necessary fields, an email is sent with a validation link and when the user is validated, another username &amp; pass are added to the _login_users.php?

Thanks. :)

Btw, I no longer need the thing I asked in my previous comment. ;)</description>
		<content:encoded><![CDATA[<p>One more question. Is there a way to do a log in page for this? So when a user fills out the necessary fields, an email is sent with a validation link and when the user is validated, another username &amp; pass are added to the _login_users.php?</p>
<p>Thanks. :)</p>
<p>Btw, I no longer need the thing I asked in my previous comment. ;)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dumbledore27</title>
		<link>http://www.crankberryblog.com/2009/secure-php-login-without-database/comment-page-2#comment-1344</link>
		<dc:creator>Dumbledore27</dc:creator>
		<pubDate>Sat, 15 Oct 2011 10:36:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.crankberryblog.com/?p=143#comment-1344</guid>
		<description>It works perfect, but I have just one question.

Only one directory is password-protected.
So directories /web and /gfx are not protected, but /vip is.
I would like to have the &quot;You  are logged in as username; ?&gt;&quot; on all of the pages, but since only one directory requires login, would it be possible to say &quot;You are not logged in/You are logged in as Guest&quot; if user is not logged in. If I do it with the code above and am not logged in, I get:
&quot;You are logged in as .&quot;

Anything I can do?</description>
		<content:encoded><![CDATA[<p>It works perfect, but I have just one question.</p>
<p>Only one directory is password-protected.<br />
So directories /web and /gfx are not protected, but /vip is.<br />
I would like to have the &#034;You  are logged in as username; ?&gt;&#034; on all of the pages, but since only one directory requires login, would it be possible to say &#034;You are not logged in/You are logged in as Guest&#034; if user is not logged in. If I do it with the code above and am not logged in, I get:<br />
&#034;You are logged in as .&#034;</p>
<p>Anything I can do?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jerry Low</title>
		<link>http://www.crankberryblog.com/2009/secure-php-login-without-database/comment-page-2#comment-1298</link>
		<dc:creator>Jerry Low</dc:creator>
		<pubDate>Thu, 06 Oct 2011 15:57:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.crankberryblog.com/?p=143#comment-1298</guid>
		<description>Kin, this can support up to as many as you like, but the problem is it is not manageable. I&#039;m still working on a deployable database one, only problem is that its fairly simple in management and hard to integrate with prebuilt systems.</description>
		<content:encoded><![CDATA[<p>Kin, this can support up to as many as you like, but the problem is it is not manageable. I&#039;m still working on a deployable database one, only problem is that its fairly simple in management and hard to integrate with prebuilt systems.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sven</title>
		<link>http://www.crankberryblog.com/2009/secure-php-login-without-database/comment-page-2#comment-1279</link>
		<dc:creator>Sven</dc:creator>
		<pubDate>Mon, 03 Oct 2011 17:43:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.crankberryblog.com/?p=143#comment-1279</guid>
		<description>Hello!

How well does this go up against rainbow tables? Is there a salt? (im noob)</description>
		<content:encoded><![CDATA[<p>Hello!</p>
<p>How well does this go up against rainbow tables? Is there a salt? (im noob)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kin</title>
		<link>http://www.crankberryblog.com/2009/secure-php-login-without-database/comment-page-2#comment-1247</link>
		<dc:creator>Kin</dc:creator>
		<pubDate>Sun, 25 Sep 2011 15:36:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.crankberryblog.com/?p=143#comment-1247</guid>
		<description>Hi, Could you please let me know how many user names and passwords will it be best to use this method ? Eg. Is there any limit for the no. of users like less than 100 users only etc., stuff ?

Could you also provide me the code for login of users USING the Database?

Thank you,
Kin</description>
		<content:encoded><![CDATA[<p>Hi, Could you please let me know how many user names and passwords will it be best to use this method ? Eg. Is there any limit for the no. of users like less than 100 users only etc., stuff ?</p>
<p>Could you also provide me the code for login of users USING the Database?</p>
<p>Thank you,<br />
Kin</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: AdamB</title>
		<link>http://www.crankberryblog.com/2009/secure-php-login-without-database/comment-page-2#comment-1092</link>
		<dc:creator>AdamB</dc:creator>
		<pubDate>Thu, 04 Aug 2011 22:07:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.crankberryblog.com/?p=143#comment-1092</guid>
		<description>hey jerry awesome code btw.. I don&#039;t know exactly what im doing wrong BUT even if i unzip the default php login site you have here and keep all the files in one folder and use the generic username and password you have in the default code i just get brought back to the same login page ;( any suggestions?</description>
		<content:encoded><![CDATA[<p>hey jerry awesome code btw.. I don&#039;t know exactly what im doing wrong BUT even if i unzip the default php login site you have here and keep all the files in one folder and use the generic username and password you have in the default code i just get brought back to the same login page ;( any suggestions?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

