<?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: PHP Simple Logout Script</title>
	<atom:link href="http://ninoholic.com/php-simple-logout-script.html/feed" rel="self" type="application/rss+xml" />
	<link>http://ninoholic.com/php-simple-logout-script.html</link>
	<description>Life Just Like Paper</description>
	<lastBuildDate>Thu, 29 Jul 2010 17:25:19 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=abc</generator>
	<item>
		<title>By: Chevy Camaro</title>
		<link>http://ninoholic.com/php-simple-logout-script.html/comment-page-1#comment-629</link>
		<dc:creator>Chevy Camaro</dc:creator>
		<pubDate>Fri, 11 Jun 2010 15:16:56 +0000</pubDate>
		<guid isPermaLink="false">http://ninoholic.com/?p=511#comment-629</guid>
		<description>Thanks for the tip on how to create a logout script. But i was wondering if you had any advice on creating an entire user management system where users can log in and out, comment, etc? I know i can do it with Wordpress, but i would rather not got that route for now.</description>
		<content:encoded><![CDATA[<p>Thanks for the tip on how to create a logout script. But i was wondering if you had any advice on creating an entire user management system where users can log in and out, comment, etc? I know i can do it with WordPress, but i would rather not got that route for now.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Removals Isleworth</title>
		<link>http://ninoholic.com/php-simple-logout-script.html/comment-page-1#comment-516</link>
		<dc:creator>Removals Isleworth</dc:creator>
		<pubDate>Sat, 20 Mar 2010 05:40:09 +0000</pubDate>
		<guid isPermaLink="false">http://ninoholic.com/?p=511#comment-516</guid>
		<description>Thanks for this tutorial. This is great, another learning for me.</description>
		<content:encoded><![CDATA[<p>Thanks for this tutorial. This is great, another learning for me.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andrei A.</title>
		<link>http://ninoholic.com/php-simple-logout-script.html/comment-page-1#comment-483</link>
		<dc:creator>Andrei A.</dc:creator>
		<pubDate>Fri, 05 Mar 2010 20:08:44 +0000</pubDate>
		<guid isPermaLink="false">http://ninoholic.com/?p=511#comment-483</guid>
		<description>Yes ! I did simple</description>
		<content:encoded><![CDATA[<p>Yes ! I did simple</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: El Nino</title>
		<link>http://ninoholic.com/php-simple-logout-script.html/comment-page-1#comment-460</link>
		<dc:creator>El Nino</dc:creator>
		<pubDate>Sat, 20 Feb 2010 17:02:27 +0000</pubDate>
		<guid isPermaLink="false">http://ninoholic.com/?p=511#comment-460</guid>
		<description>@&lt;a href=&quot;http://ninoholic.com/php-simple-logout-script.html/comment-page-1#comment-445&quot;&gt;ads Company&lt;/a&gt;: 

I think it should put on member / restricted page to limiting login time. You can using time function for that purpose, ie; (put this after session start)

&lt;code&gt;//define the current time
$current = time();
//then we decided how long the limit, 60s X 30
$limit = $current - 60 * 30;

//this is for check how long last user activity
if (isset ($_SESSION[&#039;last_activity&#039;]) &amp;&amp;
$_SESSION[&#039;last_activity&#039;] &lt; $limit) {

//now the rule of limit time will work and redirect if time limit expired
  $_SESSION = array();
  header(&#039;Location: http://yoursite/logout.php&#039;);
  exit;
} else {

//But if time not yet expired, then user will still logged in
  $_SESSION[&#039;last_activity&#039;] = $current;&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>@<a href="http://ninoholic.com/php-simple-logout-script.html/comment-page-1#comment-445">ads Company</a>: </p>
<p>I think it should put on member / restricted page to limiting login time. You can using time function for that purpose, ie; (put this after session start)</p>
<div class="codesnip-container" >//define the current time<br />
$current = time();<br />
//then we decided how long the limit, 60s X 30<br />
$limit = $current &#8211; 60 * 30;</p>
<p>//this is for check how long last user activity<br />
if (isset ($_SESSION['last_activity']) &#038;&#038;<br />
$_SESSION['last_activity'] < $limit) {</p>
<p>//now the rule of limit time will work and redirect if time limit expired<br />
  $_SESSION = array();<br />
  header('Location: <a href="http://yoursite/logout.php" rel="nofollow">http://yoursite/logout.php&#8216;);<br />
  exit;<br />
} else {</p>
<p>//But if time not yet expired, then user will still logged in<br />
  $_SESSION['last_activity'] = $current;</p></div>
]]></content:encoded>
	</item>
	<item>
		<title>By: ads Company</title>
		<link>http://ninoholic.com/php-simple-logout-script.html/comment-page-1#comment-446</link>
		<dc:creator>ads Company</dc:creator>
		<pubDate>Tue, 09 Feb 2010 04:49:52 +0000</pubDate>
		<guid isPermaLink="false">http://ninoholic.com/?p=511#comment-446</guid>
		<description>This means that the next person to use the PC can access the website without a login because the last user is still logged in..</description>
		<content:encoded><![CDATA[<p>This means that the next person to use the PC can access the website without a login because the last user is still logged in..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ads Company</title>
		<link>http://ninoholic.com/php-simple-logout-script.html/comment-page-1#comment-445</link>
		<dc:creator>ads Company</dc:creator>
		<pubDate>Tue, 09 Feb 2010 04:36:58 +0000</pubDate>
		<guid isPermaLink="false">http://ninoholic.com/?p=511#comment-445</guid>
		<description>Right now the simple script will logout all users if no acitivty is detected for a certain amount of time. I want this to work with the exception of a certain user.</description>
		<content:encoded><![CDATA[<p>Right now the simple script will logout all users if no acitivty is detected for a certain amount of time. I want this to work with the exception of a certain user.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ice hockey skates</title>
		<link>http://ninoholic.com/php-simple-logout-script.html/comment-page-1#comment-419</link>
		<dc:creator>Ice hockey skates</dc:creator>
		<pubDate>Fri, 22 Jan 2010 09:59:09 +0000</pubDate>
		<guid isPermaLink="false">http://ninoholic.com/?p=511#comment-419</guid>
		<description>Hmmm. the simple logout script seems very useful and you blog is cracking me out. It has lot of info for me.</description>
		<content:encoded><![CDATA[<p>Hmmm. the simple logout script seems very useful and you blog is cracking me out. It has lot of info for me.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Local Services Expert - Janneth</title>
		<link>http://ninoholic.com/php-simple-logout-script.html/comment-page-1#comment-384</link>
		<dc:creator>Local Services Expert - Janneth</dc:creator>
		<pubDate>Sat, 16 Jan 2010 19:33:31 +0000</pubDate>
		<guid isPermaLink="false">http://ninoholic.com/?p=511#comment-384</guid>
		<description>Got this code running! Thanks for your help. You have a lot of things useful here. I’m sure a lot of people will appreciate the help you’ve been doing so far. Kudos to you and more power to your blog.</description>
		<content:encoded><![CDATA[<p>Got this code running! Thanks for your help. You have a lot of things useful here. I’m sure a lot of people will appreciate the help you’ve been doing so far. Kudos to you and more power to your blog.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ZY21Elisabetta</title>
		<link>http://ninoholic.com/php-simple-logout-script.html/comment-page-1#comment-380</link>
		<dc:creator>ZY21Elisabetta</dc:creator>
		<pubDate>Fri, 15 Jan 2010 12:53:33 +0000</pubDate>
		<guid isPermaLink="false">http://ninoholic.com/?p=511#comment-380</guid>
		<description>I opine that it is workable to see this web page, because here only scholars should notice the superb outcome associated with this post. Therefore, the &lt;a rel=&quot;nofollow&quot; target=&quot;blank&quot; href=&quot;http://www.master-dissertations.com&quot;&gt;dissertation writing&lt;/a&gt; service could use it for thesis titles accomplishing.</description>
		<content:encoded><![CDATA[<p>I opine that it is workable to see this web page, because here only scholars should notice the superb outcome associated with this post. Therefore, the <a rel="nofollow" target="blank" href="http://www.master-dissertations.com">dissertation writing</a> service could use it for thesis titles accomplishing.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: NFL Shop</title>
		<link>http://ninoholic.com/php-simple-logout-script.html/comment-page-1#comment-378</link>
		<dc:creator>NFL Shop</dc:creator>
		<pubDate>Fri, 15 Jan 2010 09:23:40 +0000</pubDate>
		<guid isPermaLink="false">http://ninoholic.com/?p=511#comment-378</guid>
		<description>Great blog. I bookmarked your site.PHP is now popular.Do you have any more about PHP?
Here I can show some to you: &lt;a target=&quot;blank&quot; rel=&quot;nofollow&quot; href=&quot;http://www.topnflnews.com&quot;&gt;http://www.topnflnews.com&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p>Great blog. I bookmarked your site.PHP is now popular.Do you have any more about PHP?<br />
Here I can show some to you: <a target="blank" rel="nofollow" href="http://www.topnflnews.com">http://www.topnflnews.com</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Apple App Tips</title>
		<link>http://ninoholic.com/php-simple-logout-script.html/comment-page-1#comment-373</link>
		<dc:creator>Apple App Tips</dc:creator>
		<pubDate>Tue, 12 Jan 2010 23:17:40 +0000</pubDate>
		<guid isPermaLink="false">http://ninoholic.com/?p=511#comment-373</guid>
		<description>Great blog. I bookmarked your site. Th etip on php logout was also good enough.</description>
		<content:encoded><![CDATA[<p>Great blog. I bookmarked your site. Th etip on php logout was also good enough.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nick Matyas</title>
		<link>http://ninoholic.com/php-simple-logout-script.html/comment-page-1#comment-371</link>
		<dc:creator>Nick Matyas</dc:creator>
		<pubDate>Tue, 12 Jan 2010 12:33:09 +0000</pubDate>
		<guid isPermaLink="false">http://ninoholic.com/?p=511#comment-371</guid>
		<description>So well and good posting. i liked it. keep going. :)

&lt;a rel=&quot;nofollow&quot; target=&quot;blank&quot; href=&quot;http://www.webroyalty.com&quot;&gt;http://www.webroyalty.com&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p>So well and good posting. i liked it. keep going. <img src='http://ninoholic.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><a rel="nofollow" target="blank" href="http://www.webroyalty.com">http://www.webroyalty.com</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: PHP Simple Logout Script &#124; Coder Online</title>
		<link>http://ninoholic.com/php-simple-logout-script.html/comment-page-1#comment-366</link>
		<dc:creator>PHP Simple Logout Script &#124; Coder Online</dc:creator>
		<pubDate>Sun, 10 Jan 2010 19:05:00 +0000</pubDate>
		<guid isPermaLink="false">http://ninoholic.com/?p=511#comment-366</guid>
		<description>[...] Go here to see the original: PHP Simple Logout Script [...]http://coderonline.info/php-simple-logout-script/</description>
		<content:encoded><![CDATA[<p>[...] Go here to see the original: PHP Simple Logout Script [...]http://coderonline.info/php-simple-logout-script/</p>
]]></content:encoded>
	</item>
</channel>
</rss>
