<?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: Error reporting</title>
	<atom:link href="http://blog.jorygeerts.com/2007/12/29/error-reporting/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.jorygeerts.com/2007/12/29/error-reporting/</link>
	<description>Just another WordPress weblog, or something like that</description>
	<lastBuildDate>Sun, 16 May 2010 16:52:11 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: Ben Babcock</title>
		<link>http://blog.jorygeerts.com/2007/12/29/error-reporting/comment-page-1/#comment-5067</link>
		<dc:creator>Ben Babcock</dc:creator>
		<pubDate>Fri, 25 Jan 2008 13:04:17 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jorygeerts.com/2007/12/29/error-reporting/#comment-5067</guid>
		<description>I like to be as helpful as possible to the user and tell them exactly which part of their entries were in error.  As a user who frequently forgets passwords to sites he doesn&#039;t visit often, I find it unbelievably frustrating when I&#039;m trying out user/password combos and the site&#039;s just telling me, &quot;Wrong answer.  Wrong answer.  Wrong answer&quot; over and over without any details.

If my application is secure, then this shouldn&#039;t be a problem--I also like to limit the number of login attempts as well, so even if someone is trying to guess the password, they only have a certain number of tries and then the site will just stop processing the requests.

Obviously if the problem is a technical one on the backend, like not being able to connect to the database, I wouldn&#039;t give away key info.  That&#039;s what error logging is for--the error gets sent to me, and the user sees a pretty message that says something like, &quot;Could not log in due to technical difficulties.  Please stand by.&quot;

Lately I&#039;ve been looking into try/catch blocks and exceptions, since those seem like powerful tools to use.  I hope to work on a larger sort of site during the next few months and push the limits of my PHP skills, especially when it comes to application design like this. :D</description>
		<content:encoded><![CDATA[<p>I like to be as helpful as possible to the user and tell them exactly which part of their entries were in error.  As a user who frequently forgets passwords to sites he doesn&#8217;t visit often, I find it unbelievably frustrating when I&#8217;m trying out user/password combos and the site&#8217;s just telling me, &#8220;Wrong answer.  Wrong answer.  Wrong answer&#8221; over and over without any details.</p>
<p>If my application is secure, then this shouldn&#8217;t be a problem&#8211;I also like to limit the number of login attempts as well, so even if someone is trying to guess the password, they only have a certain number of tries and then the site will just stop processing the requests.</p>
<p>Obviously if the problem is a technical one on the backend, like not being able to connect to the database, I wouldn&#8217;t give away key info.  That&#8217;s what error logging is for&#8211;the error gets sent to me, and the user sees a pretty message that says something like, &#8220;Could not log in due to technical difficulties.  Please stand by.&#8221;</p>
<p>Lately I&#8217;ve been looking into try/catch blocks and exceptions, since those seem like powerful tools to use.  I hope to work on a larger sort of site during the next few months and push the limits of my PHP skills, especially when it comes to application design like this. <img src='http://blog.jorygeerts.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dennis</title>
		<link>http://blog.jorygeerts.com/2007/12/29/error-reporting/comment-page-1/#comment-4934</link>
		<dc:creator>Dennis</dc:creator>
		<pubDate>Sun, 30 Dec 2007 02:31:46 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jorygeerts.com/2007/12/29/error-reporting/#comment-4934</guid>
		<description>I usually just tell them &quot;Could not log you in using those credentials&quot; or something along those lines. Sure, it&#039;s a bit more secure, but mainly I just find it less work and less resources. That&#039;s the big reason.</description>
		<content:encoded><![CDATA[<p>I usually just tell them &#8220;Could not log you in using those credentials&#8221; or something along those lines. Sure, it&#8217;s a bit more secure, but mainly I just find it less work and less resources. That&#8217;s the big reason.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
