<?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: Creating user session checking with CodeIgniter library</title>
	<atom:link href="http://superdit.com/2010/04/17/creating-user-session-checking-with-codeigniter-library/feed/" rel="self" type="application/rss+xml" />
	<link>http://superdit.com/2010/04/17/creating-user-session-checking-with-codeigniter-library/</link>
	<description>blogging, design, tech, and web</description>
	<lastBuildDate>Thu, 09 Feb 2012 14:06:43 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: kantisangma</title>
		<link>http://superdit.com/2010/04/17/creating-user-session-checking-with-codeigniter-library/comment-page-1/#comment-64367</link>
		<dc:creator>kantisangma</dc:creator>
		<pubDate>Mon, 05 Dec 2011 08:45:34 +0000</pubDate>
		<guid isPermaLink="false">http://superdit.com/?p=351#comment-64367</guid>
		<description>Thanks a lot. this code is help me to run my session. 

public function __construct() {
parent::__construct();
$this-&gt;is_logged_in();
}</description>
		<content:encoded><![CDATA[<p>Thanks a lot. this code is help me to run my session. </p>
<p>public function __construct() {<br />
parent::__construct();<br />
$this-&gt;is_logged_in();<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: DevApp</title>
		<link>http://superdit.com/2010/04/17/creating-user-session-checking-with-codeigniter-library/comment-page-1/#comment-39435</link>
		<dc:creator>DevApp</dc:creator>
		<pubDate>Thu, 22 Sep 2011 13:33:17 +0000</pubDate>
		<guid isPermaLink="false">http://superdit.com/?p=351#comment-39435</guid>
		<description>Hi... does it means that we have to add to &quot;each&quot; function of the user class the next lines of code?

       if ($this-&gt;my_usession-&gt;logged_in)
        { .... }
       else
        { .... }

or even if we could put that into another function or method we should still have to call that function into &quot;each&quot; function of the user class?

is there any waty to put that validation into the constructor or any other place so that way we just make that validation only one time for each controller instead of making one time for each validation?

I hope you could understand me... please forgive my very bad english

best, regards.</description>
		<content:encoded><![CDATA[<p>Hi&#8230; does it means that we have to add to &#8220;each&#8221; function of the user class the next lines of code?</p>
<p>       if ($this-&gt;my_usession-&gt;logged_in)<br />
        { &#8230;. }<br />
       else<br />
        { &#8230;. }</p>
<p>or even if we could put that into another function or method we should still have to call that function into &#8220;each&#8221; function of the user class?</p>
<p>is there any waty to put that validation into the constructor or any other place so that way we just make that validation only one time for each controller instead of making one time for each validation?</p>
<p>I hope you could understand me&#8230; please forgive my very bad english</p>
<p>best, regards.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: @eduvergara</title>
		<link>http://superdit.com/2010/04/17/creating-user-session-checking-with-codeigniter-library/comment-page-1/#comment-37366</link>
		<dc:creator>@eduvergara</dc:creator>
		<pubDate>Mon, 12 Sep 2011 15:53:12 +0000</pubDate>
		<guid isPermaLink="false">http://superdit.com/?p=351#comment-37366</guid>
		<description>The session is loading twice, in $autoload and user Controller construct.</description>
		<content:encoded><![CDATA[<p>The session is loading twice, in $autoload and user Controller construct.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: @eduvergara</title>
		<link>http://superdit.com/2010/04/17/creating-user-session-checking-with-codeigniter-library/comment-page-1/#comment-36470</link>
		<dc:creator>@eduvergara</dc:creator>
		<pubDate>Thu, 08 Sep 2011 16:17:14 +0000</pubDate>
		<guid isPermaLink="false">http://superdit.com/?p=351#comment-36470</guid>
		<description>session is loading twice:
$autoload[&#039;libraries&#039;] = array(&#039;database&#039;, &#039;session&#039;, &#039;my_usession&#039;); load-&gt;library(&#039;session&#039;);  &lt;----
	    }</description>
		<content:encoded><![CDATA[<p>session is loading twice:<br />
$autoload['libraries'] = array(&#8216;database&#8217;, &#8216;session&#8217;, &#8216;my_usession&#8217;); load-&gt;library(&#8216;session&#8217;);  &lt;&#8212;-<br />
	    }</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: @eduvergara</title>
		<link>http://superdit.com/2010/04/17/creating-user-session-checking-with-codeigniter-library/comment-page-1/#comment-36459</link>
		<dc:creator>@eduvergara</dc:creator>
		<pubDate>Thu, 08 Sep 2011 14:58:57 +0000</pubDate>
		<guid isPermaLink="false">http://superdit.com/?p=351#comment-36459</guid>
		<description>Hey! great post!
thanxs!</description>
		<content:encoded><![CDATA[<p>Hey! great post!<br />
thanxs!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter Lee</title>
		<link>http://superdit.com/2010/04/17/creating-user-session-checking-with-codeigniter-library/comment-page-1/#comment-23619</link>
		<dc:creator>Peter Lee</dc:creator>
		<pubDate>Wed, 06 Jul 2011 23:24:10 +0000</pubDate>
		<guid isPermaLink="false">http://superdit.com/?p=351#comment-23619</guid>
		<description>I was looking at this solution, but am having a problem in that when I call the library I believe that the CI_Session is being re-instatiated and a 2nd cookie is being generated.

I thought perhaps the issue was due to .htaccess issues or similar, but have narrowed it down to this library being loaded. Any ideas? Ta.</description>
		<content:encoded><![CDATA[<p>I was looking at this solution, but am having a problem in that when I call the library I believe that the CI_Session is being re-instatiated and a 2nd cookie is being generated.</p>
<p>I thought perhaps the issue was due to .htaccess issues or similar, but have narrowed it down to this library being loaded. Any ideas? Ta.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: aditia rahman</title>
		<link>http://superdit.com/2010/04/17/creating-user-session-checking-with-codeigniter-library/comment-page-1/#comment-14227</link>
		<dc:creator>aditia rahman</dc:creator>
		<pubDate>Wed, 09 Mar 2011 23:29:34 +0000</pubDate>
		<guid isPermaLink="false">http://superdit.com/?p=351#comment-14227</guid>
		<description>Hi Andy,
Thanks for fixing it up,
Lately I haven&#039;t use CI version 2, I will take a look for this, and adding some update on this post</description>
		<content:encoded><![CDATA[<p>Hi Andy,<br />
Thanks for fixing it up,<br />
Lately I haven&#8217;t use CI version 2, I will take a look for this, and adding some update on this post</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andy</title>
		<link>http://superdit.com/2010/04/17/creating-user-session-checking-with-codeigniter-library/comment-page-1/#comment-14221</link>
		<dc:creator>Andy</dc:creator>
		<pubDate>Wed, 09 Mar 2011 22:27:52 +0000</pubDate>
		<guid isPermaLink="false">http://superdit.com/?p=351#comment-14221</guid>
		<description>this is working 

    public function __construct() {
        parent::__construct();
        $this-&gt;is_logged_in();
    }</description>
		<content:encoded><![CDATA[<p>this is working </p>
<p>    public function __construct() {<br />
        parent::__construct();<br />
        $this-&gt;is_logged_in();<br />
    }</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andy</title>
		<link>http://superdit.com/2010/04/17/creating-user-session-checking-with-codeigniter-library/comment-page-1/#comment-14219</link>
		<dc:creator>Andy</dc:creator>
		<pubDate>Wed, 09 Mar 2011 22:27:06 +0000</pubDate>
		<guid isPermaLink="false">http://superdit.com/?p=351#comment-14219</guid>
		<description>WORKING CODE &gt;&gt; FOUND RIGHT CODE ;-)

is_logged_in();
    }

    public function is_logged_in()
    {
        $logged = $this-&gt;userdata(&#039;user_id&#039;);
        $this-&gt;logged_in = ($logged) ? TRUE : FALSE;
    }
}</description>
		<content:encoded><![CDATA[<p>WORKING CODE &gt;&gt; FOUND RIGHT CODE <img src='http://superdit.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
<p>is_logged_in();<br />
    }</p>
<p>    public function is_logged_in()<br />
    {<br />
        $logged = $this-&gt;userdata(&#8216;user_id&#8217;);<br />
        $this-&gt;logged_in = ($logged) ? TRUE : FALSE;<br />
    }<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andy</title>
		<link>http://superdit.com/2010/04/17/creating-user-session-checking-with-codeigniter-library/comment-page-1/#comment-14211</link>
		<dc:creator>Andy</dc:creator>
		<pubDate>Wed, 09 Mar 2011 21:12:49 +0000</pubDate>
		<guid isPermaLink="false">http://superdit.com/?p=351#comment-14211</guid>
		<description>I have used this hint in CI 1.7.3 but in CI 2.0.0 it doesnt work. Can you update your code ? I cant make it work...

Thanks for reply !</description>
		<content:encoded><![CDATA[<p>I have used this hint in CI 1.7.3 but in CI 2.0.0 it doesnt work. Can you update your code ? I cant make it work&#8230;</p>
<p>Thanks for reply !</p>
]]></content:encoded>
	</item>
</channel>
</rss>

