<?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: Authentication without sessions in PHP</title>
	<atom:link href="http://www.jasny.net/articles/authentication-without-sessions/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.jasny.net/articles/authentication-without-sessions/</link>
	<description>Helping you out with PHP &#38; MySQL</description>
	<lastBuildDate>Wed, 25 Jan 2012 21:57:47 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Arnold Daniels</title>
		<link>http://www.jasny.net/articles/authentication-without-sessions/comment-page-1/#comment-203121</link>
		<dc:creator>Arnold Daniels</dc:creator>
		<pubDate>Wed, 22 Jul 2009 16:14:36 +0000</pubDate>
		<guid isPermaLink="false">http://blog.adaniels.nl/articles/authentication-without-sessions/#comment-203121</guid>
		<description>ccapela,

The code does 2 things:
 1.) Check if $authhash is valid, by doing the same operation as done when creating the hash on line 20.
 2.) Check the timestamp to see if the hash was created less than 50 minutes ago. This means that there is a 50 minute time out.</description>
		<content:encoded><![CDATA[<p>ccapela,</p>
<p>The code does 2 things:<br />
 1.) Check if $authhash is valid, by doing the same operation as done when creating the hash on line 20.<br />
 2.) Check the timestamp to see if the hash was created less than 50 minutes ago. This means that there is a 50 minute time out.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ccapela</title>
		<link>http://www.jasny.net/articles/authentication-without-sessions/comment-page-1/#comment-203026</link>
		<dc:creator>ccapela</dc:creator>
		<pubDate>Tue, 21 Jul 2009 16:44:34 +0000</pubDate>
		<guid isPermaLink="false">http://blog.adaniels.nl/articles/authentication-without-sessions/#comment-203026</guid>
		<description>Hi Arnold Daniels

Can you explain me please, this instruction in your code above?

$logged_in = md5($username . $time . $secretword) === $authhash &amp;&amp; $time &gt;= time() - 3000;

Thanks in advance,
ccapela</description>
		<content:encoded><![CDATA[<p>Hi Arnold Daniels</p>
<p>Can you explain me please, this instruction in your code above?</p>
<p>$logged_in = md5($username . $time . $secretword) === $authhash &amp;&amp; $time &gt;= time() &#8211; 3000;</p>
<p>Thanks in advance,<br />
ccapela</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: PHP Encoder</title>
		<link>http://www.jasny.net/articles/authentication-without-sessions/comment-page-1/#comment-21468</link>
		<dc:creator>PHP Encoder</dc:creator>
		<pubDate>Wed, 02 Apr 2008 17:22:21 +0000</pubDate>
		<guid isPermaLink="false">http://blog.adaniels.nl/articles/authentication-without-sessions/#comment-21468</guid>
		<description>I often use this method as sometimes you just can&#039;t use sessions or cookies and the above method is the only elegant solution.</description>
		<content:encoded><![CDATA[<p>I often use this method as sometimes you just can&#8217;t use sessions or cookies and the above method is the only elegant solution.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ThanosEA</title>
		<link>http://www.jasny.net/articles/authentication-without-sessions/comment-page-1/#comment-18909</link>
		<dc:creator>ThanosEA</dc:creator>
		<pubDate>Fri, 14 Mar 2008 17:01:20 +0000</pubDate>
		<guid isPermaLink="false">http://blog.adaniels.nl/articles/authentication-without-sessions/#comment-18909</guid>
		<description>Hi

I try to use the new version of teleport for my website but when I test, firebug give this error &#039;jpf is not define&#039;.

When I compare with my old version I can&#039;t find the initialisation of jpf  as Kernel (Kernel =)

Anyone could help me ?

CU</description>
		<content:encoded><![CDATA[<p>Hi</p>
<p>I try to use the new version of teleport for my website but when I test, firebug give this error &#8216;jpf is not define&#8217;.</p>
<p>When I compare with my old version I can&#8217;t find the initialisation of jpf  as Kernel (Kernel =)</p>
<p>Anyone could help me ?</p>
<p>CU</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Arnold Daniels</title>
		<link>http://www.jasny.net/articles/authentication-without-sessions/comment-page-1/#comment-18814</link>
		<dc:creator>Arnold Daniels</dc:creator>
		<pubDate>Thu, 13 Mar 2008 13:10:48 +0000</pubDate>
		<guid isPermaLink="false">http://blog.adaniels.nl/articles/authentication-without-sessions/#comment-18814</guid>
		<description>You can save if it in a cookie if you prefer. However I don&#039;t think it&#039;s false security. If you don&#039;t have the hash, you can&#039;t get it in. If a user copies and pastes the hash, it&#039;s a different story.

The exact same goes however for session ids. If you don&#039;t like putting session ids in URLs, don&#039;t put the hash in an URL but put it in a cookie instead.</description>
		<content:encoded><![CDATA[<p>You can save if it in a cookie if you prefer. However I don&#8217;t think it&#8217;s false security. If you don&#8217;t have the hash, you can&#8217;t get it in. If a user copies and pastes the hash, it&#8217;s a different story.</p>
<p>The exact same goes however for session ids. If you don&#8217;t like putting session ids in URLs, don&#8217;t put the hash in an URL but put it in a cookie instead.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David Branco</title>
		<link>http://www.jasny.net/articles/authentication-without-sessions/comment-page-1/#comment-18813</link>
		<dc:creator>David Branco</dc:creator>
		<pubDate>Thu, 13 Mar 2008 12:26:18 +0000</pubDate>
		<guid isPermaLink="false">http://blog.adaniels.nl/articles/authentication-without-sessions/#comment-18813</guid>
		<description>For security reasons I wouldn&#039;t support authentication via a GET or POST methoud. These can easly be shared and often lead to a feeling of false-security. As stated above, limiting the session by IP will help dramaticly; however, I am also aware that many companys run a single building consisting of several hundred computers throught the same Internet Protocall Address.</description>
		<content:encoded><![CDATA[<p>For security reasons I wouldn&#8217;t support authentication via a GET or POST methoud. These can easly be shared and often lead to a feeling of false-security. As stated above, limiting the session by IP will help dramaticly; however, I am also aware that many companys run a single building consisting of several hundred computers throught the same Internet Protocall Address.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Arnold Daniels</title>
		<link>http://www.jasny.net/articles/authentication-without-sessions/comment-page-1/#comment-17621</link>
		<dc:creator>Arnold Daniels</dc:creator>
		<pubDate>Thu, 06 Mar 2008 14:41:03 +0000</pubDate>
		<guid isPermaLink="false">http://blog.adaniels.nl/articles/authentication-without-sessions/#comment-17621</guid>
		<description>In most cases, storing it in a file will be faster.</description>
		<content:encoded><![CDATA[<p>In most cases, storing it in a file will be faster.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kate</title>
		<link>http://www.jasny.net/articles/authentication-without-sessions/comment-page-1/#comment-17615</link>
		<dc:creator>kate</dc:creator>
		<pubDate>Thu, 06 Mar 2008 13:39:15 +0000</pubDate>
		<guid isPermaLink="false">http://blog.adaniels.nl/articles/authentication-without-sessions/#comment-17615</guid>
		<description>Thanks for your information.I have another doubt?
Storing session in db is fast?
http://www.w3answers.com</description>
		<content:encoded><![CDATA[<p>Thanks for your information.I have another doubt?<br />
Storing session in db is fast?<br />
<a href="http://www.w3answers.com" rel="nofollow">http://www.w3answers.com</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Arnold Daniels</title>
		<link>http://www.jasny.net/articles/authentication-without-sessions/comment-page-1/#comment-17611</link>
		<dc:creator>Arnold Daniels</dc:creator>
		<pubDate>Thu, 06 Mar 2008 13:25:38 +0000</pubDate>
		<guid isPermaLink="false">http://blog.adaniels.nl/articles/authentication-without-sessions/#comment-17611</guid>
		<description>Yes, you can save session data in the DB. Have a look at this article: http://www.devshed.com/c/a/PHP/Storing-PHP-Sessions-in-a-Database/.

You can use it if your site is so popular that it needs multiple webservers with load balancing. The session data should be known on each of the servers.

I don&#039;t see any security advantages. If someone has access to read the session file, he can probably also the configuration file of your webapp with the mysql password. If you have users other than you on the system and worry they might fish a session file out of /tmp, you can create a /session dir and make it only readable for www-data.</description>
		<content:encoded><![CDATA[<p>Yes, you can save session data in the DB. Have a look at this article: <a href="http://www.devshed.com/c/a/PHP/Storing-PHP-Sessions-in-a-Database/" rel="nofollow">http://www.devshed.com/c/a/PHP/Storing-PHP-Sessions-in-a-Database/</a>.</p>
<p>You can use it if your site is so popular that it needs multiple webservers with load balancing. The session data should be known on each of the servers.</p>
<p>I don&#8217;t see any security advantages. If someone has access to read the session file, he can probably also the configuration file of your webapp with the mysql password. If you have users other than you on the system and worry they might fish a session file out of /tmp, you can create a /session dir and make it only readable for www-data.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kate</title>
		<link>http://www.jasny.net/articles/authentication-without-sessions/comment-page-1/#comment-17598</link>
		<dc:creator>kate</dc:creator>
		<pubDate>Thu, 06 Mar 2008 12:09:30 +0000</pubDate>
		<guid isPermaLink="false">http://blog.adaniels.nl/articles/authentication-without-sessions/#comment-17598</guid>
		<description>Do you mean that we can store sessions in database? waht is the advantage of this ,instead of storing in files.db also will take time to load.But i think for the security issues db is good.but not sure.please clear my doubts.
http://www.w3answers.com</description>
		<content:encoded><![CDATA[<p>Do you mean that we can store sessions in database? waht is the advantage of this ,instead of storing in files.db also will take time to load.But i think for the security issues db is good.but not sure.please clear my doubts.<br />
<a href="http://www.w3answers.com" rel="nofollow">http://www.w3answers.com</a></p>
]]></content:encoded>
	</item>
</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->
