<?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 with CodeIgniter</title>
	<atom:link href="http://davidwinter.me.uk/articles/2009/02/21/authentication-with-codeigniter/feed/" rel="self" type="application/rss+xml" />
	<link>http://davidwinter.me.uk/articles/2009/02/21/authentication-with-codeigniter/</link>
	<description>you were expecting someone else?</description>
	<lastBuildDate>Thu, 09 Sep 2010 14:34:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: Hairy One</title>
		<link>http://davidwinter.me.uk/articles/2009/02/21/authentication-with-codeigniter/comment-page-1/#comment-38690</link>
		<dc:creator>Hairy One</dc:creator>
		<pubDate>Thu, 01 Jul 2010 05:21:13 +0000</pubDate>
		<guid isPermaLink="false">http://davidwinter.me.uk/?p=127#comment-38690</guid>
		<description>&lt;p&gt;Sorry, here is my MY_Controller class:
&lt;pre&gt;&lt;code&gt;
&lt;?php&lt;/p&gt;

&lt;p&gt;class MY_Controller extends Controller
{
    public function &lt;strong&gt;construct()
    {
        parent::&lt;/strong&gt;construct();
        $this-&gt;load-&gt;library(&#039;session&#039;);
        if (!$this-&gt;session-&gt;userdata(&#039;loggedin&#039;))
        {
            header(&#039;Location: /sessions/login&#039;);
        }
    }
}
&lt;/code&gt;&lt;/pre&gt;&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Sorry, here is my MY_Controller class:
<pre><code>
&lt;?php</code></pre></p>

<p>class MY_Controller extends Controller
{
    public function <strong>construct()
    {
        parent::</strong>construct();
        $this-&gt;load-&gt;library('session');
        if (!$this-&gt;session-&gt;userdata('loggedin'))
        {
            header('Location: /sessions/login');
        }
    }
}
</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Hairy One</title>
		<link>http://davidwinter.me.uk/articles/2009/02/21/authentication-with-codeigniter/comment-page-1/#comment-38689</link>
		<dc:creator>Hairy One</dc:creator>
		<pubDate>Thu, 01 Jul 2010 05:18:25 +0000</pubDate>
		<guid isPermaLink="false">http://davidwinter.me.uk/?p=127#comment-38689</guid>
		<description>&lt;p&gt;Hi,
I&#039;m stuck with that error:
Undefined property: MY_Controller::$session&lt;/p&gt;

&lt;p&gt;sessions and My&lt;em&gt;Controller are autoloaded. Here is MY&lt;/em&gt;Controller class:
&lt;pre&gt;&lt;code&gt;
&lt;?php&lt;/p&gt;

&lt;p&gt;class Welcome extends MY_Controller {&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;function  __construct()
{
    parent:: __construct();
}

function index()
{
    $this-&gt;load-&gt;helper(&#039;url&#039;);
    $this-&gt;load-&gt;view(&#039;welcome_message&#039;);
}
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;}
&lt;/code&gt;&lt;/pre&gt;&lt;/p&gt;

&lt;p&gt;any ideas?&lt;/p&gt;

&lt;p&gt;Thanks&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Hi,
I&#8217;m stuck with that error:
Undefined property: MY_Controller::$session</p>

<p>sessions and My<em>Controller are autoloaded. Here is MY</em>Controller class:
<pre><code>
&lt;?php</code></pre></p>

<p>class Welcome extends MY_Controller {</p>

<pre><code>function  __construct()
{
    parent:: __construct();
}

function index()
{
    $this-&gt;load-&gt;helper('url');
    $this-&gt;load-&gt;view('welcome_message');
}
</code></pre>

<p>}
</p>

<p>any ideas?</p>

<p>Thanks</p>]]></content:encoded>
	</item>
	<item>
		<title>By: hanaptayo</title>
		<link>http://davidwinter.me.uk/articles/2009/02/21/authentication-with-codeigniter/comment-page-1/#comment-38650</link>
		<dc:creator>hanaptayo</dc:creator>
		<pubDate>Thu, 20 May 2010 14:32:16 +0000</pubDate>
		<guid isPermaLink="false">http://davidwinter.me.uk/?p=127#comment-38650</guid>
		<description>&lt;p&gt;This works for me. thnxz a lot, is there any library with users access rights?&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>This works for me. thnxz a lot, is there any library with users access rights?</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Sangwon Park</title>
		<link>http://davidwinter.me.uk/articles/2009/02/21/authentication-with-codeigniter/comment-page-1/#comment-38645</link>
		<dc:creator>Sangwon Park</dc:creator>
		<pubDate>Mon, 17 May 2010 12:17:24 +0000</pubDate>
		<guid isPermaLink="false">http://davidwinter.me.uk/?p=127#comment-38645</guid>
		<description>&lt;p&gt;Nice. Very helpful for me.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Nice. Very helpful for me.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Jalal</title>
		<link>http://davidwinter.me.uk/articles/2009/02/21/authentication-with-codeigniter/comment-page-1/#comment-38595</link>
		<dc:creator>Jalal</dc:creator>
		<pubDate>Wed, 11 Nov 2009 14:47:30 +0000</pubDate>
		<guid isPermaLink="false">http://davidwinter.me.uk/?p=127#comment-38595</guid>
		<description>&lt;p&gt;Dear all,&lt;/p&gt;

&lt;p&gt;As I am a newbie with CI, I found this tutorial very interesting. I however got some difficulties while implementing it. I think I created the right model but what I am stuck with is the header(Location: /path). How can I configure the default Location? I changed the base_url in the config.php but it doesn&#039;t work.&lt;/p&gt;

&lt;p&gt;Thanks&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Dear all,</p>

<p>As I am a newbie with CI, I found this tutorial very interesting. I however got some difficulties while implementing it. I think I created the right model but what I am stuck with is the header(Location: /path). How can I configure the default Location? I changed the base_url in the config.php but it doesn&#8217;t work.</p>

<p>Thanks</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Robbie</title>
		<link>http://davidwinter.me.uk/articles/2009/02/21/authentication-with-codeigniter/comment-page-1/#comment-38588</link>
		<dc:creator>Robbie</dc:creator>
		<pubDate>Wed, 21 Oct 2009 09:28:07 +0000</pubDate>
		<guid isPermaLink="false">http://davidwinter.me.uk/?p=127#comment-38588</guid>
		<description>&lt;p&gt;Don&#039;t forget to actually call the extended constructor from your secretplace constructor.
with:&lt;/p&gt;

&lt;p&gt;parent::MY_Controller();&lt;/p&gt;

&lt;p&gt;and not:&lt;/p&gt;

&lt;p&gt;parent::Controller();&lt;/p&gt;

&lt;p&gt;Good tutorial.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Don&#8217;t forget to actually call the extended constructor from your secretplace constructor.
with:</p>

<p>parent::MY_Controller();</p>

<p>and not:</p>

<p>parent::Controller();</p>

<p>Good tutorial.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Phil Pemberton</title>
		<link>http://davidwinter.me.uk/articles/2009/02/21/authentication-with-codeigniter/comment-page-1/#comment-38579</link>
		<dc:creator>Phil Pemberton</dc:creator>
		<pubDate>Sat, 05 Sep 2009 20:48:54 +0000</pubDate>
		<guid isPermaLink="false">http://davidwinter.me.uk/?p=127#comment-38579</guid>
		<description>&lt;p&gt;Also, FYI, the boldfaced text is supposed to be &quot;underscore-underscore-construct()&quot;, then the same after &quot;parent::&quot;. This is in the PHP manual and most good PHP books, and should be listed under either &quot;classes&quot; or &quot;object oriented programming&quot;.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Also, FYI, the boldfaced text is supposed to be &#8220;underscore-underscore-construct()&#8221;, then the same after &#8220;parent::&#8221;. This is in the PHP manual and most good PHP books, and should be listed under either &#8220;classes&#8221; or &#8220;object oriented programming&#8221;.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Phil Pemberton</title>
		<link>http://davidwinter.me.uk/articles/2009/02/21/authentication-with-codeigniter/comment-page-1/#comment-38578</link>
		<dc:creator>Phil Pemberton</dc:creator>
		<pubDate>Sat, 05 Sep 2009 20:47:02 +0000</pubDate>
		<guid isPermaLink="false">http://davidwinter.me.uk/?p=127#comment-38578</guid>
		<description>&lt;p&gt;Hmm. Seems this site has Markdown enabled for comments...&lt;/p&gt;

&lt;p&gt;That&#039;s supposed to be &quot;MY-underscore-Controller&quot;, not &quot;MYController&quot;.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Hmm. Seems this site has Markdown enabled for comments&#8230;</p>

<p>That&#8217;s supposed to be &#8220;MY-underscore-Controller&#8221;, not &#8220;MYController&#8221;.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Phil Pemberton</title>
		<link>http://davidwinter.me.uk/articles/2009/02/21/authentication-with-codeigniter/comment-page-1/#comment-38577</link>
		<dc:creator>Phil Pemberton</dc:creator>
		<pubDate>Sat, 05 Sep 2009 20:46:02 +0000</pubDate>
		<guid isPermaLink="false">http://davidwinter.me.uk/?p=127#comment-38577</guid>
		<description>&lt;p&gt;@andy: I had the same issue. If your PHP code is written in &quot;PHP4 style&quot;, i.e. like this:&lt;/p&gt;

&lt;p&gt;class MyPage extends MY&lt;em&gt;Controller {
  function MyPage() {
    parent::MY&lt;/em&gt;Controller();
  }
}&lt;/p&gt;

&lt;p&gt;then you need to be VERY careful to call parent::MY_Controller(), and not parent::Controller().&lt;/p&gt;

&lt;p&gt;A safer way to do this (though PHP5-specific) is:&lt;/p&gt;

&lt;p&gt;class MyPage extends MY_Controller {
  function &lt;strong&gt;construct() {
    parent::&lt;/strong&gt;construct();
  }
}&lt;/p&gt;

&lt;p&gt;This works for me.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>@andy: I had the same issue. If your PHP code is written in &#8220;PHP4 style&#8221;, i.e. like this:</p>

<p>class MyPage extends MY<em>Controller {
  function MyPage() {
    parent::MY</em>Controller();
  }
}</p>

<p>then you need to be VERY careful to call parent::MY_Controller(), and not parent::Controller().</p>

<p>A safer way to do this (though PHP5-specific) is:</p>

<p>class MyPage extends MY_Controller {
  function <strong>construct() {
    parent::</strong>construct();
  }
}</p>

<p>This works for me.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Jhourlad Estrella</title>
		<link>http://davidwinter.me.uk/articles/2009/02/21/authentication-with-codeigniter/comment-page-1/#comment-38564</link>
		<dc:creator>Jhourlad Estrella</dc:creator>
		<pubDate>Sat, 15 Aug 2009 12:55:45 +0000</pubDate>
		<guid isPermaLink="false">http://davidwinter.me.uk/?p=127#comment-38564</guid>
		<description>&lt;p&gt;I think this code does not follow the usual CodeIgniter form validation standards. I reckon you should have used a custom callback function or other built-in validation methods. Anyway, your codes seems longer but I think it works so congratulations on that!&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>I think this code does not follow the usual CodeIgniter form validation standards. I reckon you should have used a custom callback function or other built-in validation methods. Anyway, your codes seems longer but I think it works so congratulations on that!</p>]]></content:encoded>
	</item>
</channel>
</rss>
