<?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: idleTimeout &#8211; jQuery Idle Session Auto Timeout with Prompt</title>
	<atom:link href="http://philpalmieri.com/2009/09/jquery-session-auto-timeout-with-prompt/feed/" rel="self" type="application/rss+xml" />
	<link>http://philpalmieri.com/2009/09/jquery-session-auto-timeout-with-prompt/</link>
	<description>php, codeigniter, mysql, jquery, as3 &#38; flex</description>
	<lastBuildDate>Fri, 16 Jul 2010 18:29:22 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: Phil</title>
		<link>http://philpalmieri.com/2009/09/jquery-session-auto-timeout-with-prompt/comment-page-1/#comment-1643</link>
		<dc:creator>Phil</dc:creator>
		<pubDate>Mon, 03 May 2010 23:15:52 +0000</pubDate>
		<guid isPermaLink="false">http://philpalmieri.com/?p=125#comment-1643</guid>
		<description>Thanks,

This looks good -  

I will be moving this code to google code as soon as i can, the account is already there -  Also, i am working on an updated version that gives more controls over the UI - one option being to not use jQuery UI  but just a simple confirm, as well as using facebox.  

Phil</description>
		<content:encoded><![CDATA[<p>Thanks,</p>
<p>This looks good &#8211;  </p>
<p>I will be moving this code to google code as soon as i can, the account is already there &#8211;  Also, i am working on an updated version that gives more controls over the UI &#8211; one option being to not use jQuery UI  but just a simple confirm, as well as using facebox.  </p>
<p>Phil</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lance McCulley</title>
		<link>http://philpalmieri.com/2009/09/jquery-session-auto-timeout-with-prompt/comment-page-1/#comment-1642</link>
		<dc:creator>Lance McCulley</dc:creator>
		<pubDate>Mon, 03 May 2010 23:12:31 +0000</pubDate>
		<guid isPermaLink="false">http://philpalmieri.com/?p=125#comment-1642</guid>
		<description>Hi Phil,

Thanks for this plugin, it works very well.

I\&#039;ve made a couple of changes and thought I\&#039;d share what I changed.

First, I\&#039;ve removed the opts.redirect_url because I think PHP can do all of the session destroying/redirecting for me and it changes the jQuery from this --
    var redirect = function()
    {
      if(opts.logout_url)
      {
        $.get(opts.logout_url);
      }
      window.location.href = opts.redirect_url;
    }

to the much simpler-- 
   var redirect = function()
    {
      window.location.href = opts.logout_url;
    }

This is really just a preference, I think. Secondly, I\&#039;ve changed the modal call a bit. I noticed in the buttons declaration there was a callback to close the modal and then ping the sessionAlive url. The problem arose that when you click the \&quot;X\&quot; to close the modal in the title area the sessionAlive url was not pinged and the modal would not pop back up. So, as a remedy I\&#039;ve added the \&quot;close\&quot; even with a call back to the stay_logged_in() function. This way it doesn\&#039;t matter if they hit the button or the \&quot;X\&quot;, it will still reset appropriately. Here\&#039;s what the code was--
      $(modal).dialog({
        buttons: {\&quot;Stay Logged In\&quot;:  function(){
          $(this).dialog(\&#039;close\&#039;);
          stay_logged_in();
        }},
        modal: true,
        title: \&#039;Auto Logout\&#039;
      });

Here\&#039;s what I changed it to--
$(modal).dialog({
        buttons: {\&quot;Stay Logged In\&quot;:  function(){
          $(this).dialog(\&#039;close\&#039;);
        }},
        modal: true,
        title: \&#039;Auto Logout\&#039;,
	close: function(event, ui) {
		stay_logged_in();
	}
});</description>
		<content:encoded><![CDATA[<p>Hi Phil,</p>
<p>Thanks for this plugin, it works very well.</p>
<p>I\&#8217;ve made a couple of changes and thought I\&#8217;d share what I changed.</p>
<p>First, I\&#8217;ve removed the opts.redirect_url because I think PHP can do all of the session destroying/redirecting for me and it changes the jQuery from this &#8211;<br />
    var redirect = function()<br />
    {<br />
      if(opts.logout_url)<br />
      {<br />
        $.get(opts.logout_url);<br />
      }<br />
      window.location.href = opts.redirect_url;<br />
    }</p>
<p>to the much simpler&#8211;<br />
   var redirect = function()<br />
    {<br />
      window.location.href = opts.logout_url;<br />
    }</p>
<p>This is really just a preference, I think. Secondly, I\&#8217;ve changed the modal call a bit. I noticed in the buttons declaration there was a callback to close the modal and then ping the sessionAlive url. The problem arose that when you click the \&quot;X\&quot; to close the modal in the title area the sessionAlive url was not pinged and the modal would not pop back up. So, as a remedy I\&#8217;ve added the \&quot;close\&quot; even with a call back to the stay_logged_in() function. This way it doesn\&#8217;t matter if they hit the button or the \&quot;X\&quot;, it will still reset appropriately. Here\&#8217;s what the code was&#8211;<br />
      $(modal).dialog({<br />
        buttons: {\&quot;Stay Logged In\&quot;:  function(){<br />
          $(this).dialog(\&#8217;close\&#8217;);<br />
          stay_logged_in();<br />
        }},<br />
        modal: true,<br />
        title: \&#8217;Auto Logout\&#8217;<br />
      });</p>
<p>Here\&#8217;s what I changed it to&#8211;<br />
$(modal).dialog({<br />
        buttons: {\&quot;Stay Logged In\&quot;:  function(){<br />
          $(this).dialog(\&#8217;close\&#8217;);<br />
        }},<br />
        modal: true,<br />
        title: \&#8217;Auto Logout\&#8217;,<br />
	close: function(event, ui) {<br />
		stay_logged_in();<br />
	}<br />
});</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vincent Planchenault</title>
		<link>http://philpalmieri.com/2009/09/jquery-session-auto-timeout-with-prompt/comment-page-1/#comment-1637</link>
		<dc:creator>Vincent Planchenault</dc:creator>
		<pubDate>Sun, 02 May 2010 20:37:09 +0000</pubDate>
		<guid isPermaLink="false">http://philpalmieri.com/?p=125#comment-1637</guid>
		<description>Hello Phil,

I&#039;ve discovered your idleTimeout jQuery script, which almost satisfy my needs. Good job !

I&#039;ve slightly modified it to :

- add 3 options : &quot;alertButton&quot; to change text in the button of the dialog, &quot;alertTitle&quot; to change the title of the dialog and finally alertText to change the content of the message 
- allow not using any of the 3 urls (redirect_url, alive_url, logout_url); I personaly don&#039;t use alive_url currently, and &quot;/js_sandbox/&quot; doesn&#039;t match well with my backend ;-)

In respect of the license, I want to send you my revision, just send me an email if you want to (I&#039;ve searched for your email on the blog without success).</description>
		<content:encoded><![CDATA[<p>Hello Phil,</p>
<p>I&#8217;ve discovered your idleTimeout jQuery script, which almost satisfy my needs. Good job !</p>
<p>I&#8217;ve slightly modified it to :</p>
<p>- add 3 options : &#8220;alertButton&#8221; to change text in the button of the dialog, &#8220;alertTitle&#8221; to change the title of the dialog and finally alertText to change the content of the message<br />
- allow not using any of the 3 urls (redirect_url, alive_url, logout_url); I personaly don&#8217;t use alive_url currently, and &#8220;/js_sandbox/&#8221; doesn&#8217;t match well with my backend <img src='http://philpalmieri.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
<p>In respect of the license, I want to send you my revision, just send me an email if you want to (I&#8217;ve searched for your email on the blog without success).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Phil</title>
		<link>http://philpalmieri.com/2009/09/jquery-session-auto-timeout-with-prompt/comment-page-1/#comment-1574</link>
		<dc:creator>Phil</dc:creator>
		<pubDate>Mon, 26 Apr 2010 22:47:15 +0000</pubDate>
		<guid isPermaLink="false">http://philpalmieri.com/?p=125#comment-1574</guid>
		<description>Good catch - thanks!

Phil</description>
		<content:encoded><![CDATA[<p>Good catch &#8211; thanks!</p>
<p>Phil</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gilbert Mena</title>
		<link>http://philpalmieri.com/2009/09/jquery-session-auto-timeout-with-prompt/comment-page-1/#comment-1572</link>
		<dc:creator>Gilbert Mena</dc:creator>
		<pubDate>Mon, 26 Apr 2010 20:33:04 +0000</pubDate>
		<guid isPermaLink="false">http://philpalmieri.com/?p=125#comment-1572</guid>
		<description>Hi,

Great script.  I had to make a modification to it because it seemed that whenever the alert would come up, you could click on the modal area and the timer would reset but the alert would stay open.  Once the timer expired again, a new alert would be opened in addition to the previous one that was already opened.

I added this to the beginning on the logout function:
$(document).unbind(\&#039;click\&#039;, start_liveTimeout);  

I then added this to the callback function of the \&quot;Stay Logged In\&quot; button:
$(document).bind(\&#039;click\&#039;, start_liveTimeout);

Anyway, great script again.  Just thought I would contribute.</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>Great script.  I had to make a modification to it because it seemed that whenever the alert would come up, you could click on the modal area and the timer would reset but the alert would stay open.  Once the timer expired again, a new alert would be opened in addition to the previous one that was already opened.</p>
<p>I added this to the beginning on the logout function:<br />
$(document).unbind(\&#8217;click\&#8217;, start_liveTimeout);  </p>
<p>I then added this to the callback function of the \&quot;Stay Logged In\&quot; button:<br />
$(document).bind(\&#8217;click\&#8217;, start_liveTimeout);</p>
<p>Anyway, great script again.  Just thought I would contribute.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sue</title>
		<link>http://philpalmieri.com/2009/09/jquery-session-auto-timeout-with-prompt/comment-page-1/#comment-1125</link>
		<dc:creator>Sue</dc:creator>
		<pubDate>Mon, 12 Apr 2010 09:37:45 +0000</pubDate>
		<guid isPermaLink="false">http://philpalmieri.com/?p=125#comment-1125</guid>
		<description>Phil, thank you for this excellent peice of work, have got it working locally and will have it working live very soon.</description>
		<content:encoded><![CDATA[<p>Phil, thank you for this excellent peice of work, have got it working locally and will have it working live very soon.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Phil</title>
		<link>http://philpalmieri.com/2009/09/jquery-session-auto-timeout-with-prompt/comment-page-1/#comment-945</link>
		<dc:creator>Phil</dc:creator>
		<pubDate>Sat, 27 Mar 2010 19:01:02 +0000</pubDate>
		<guid isPermaLink="false">http://philpalmieri.com/?p=125#comment-945</guid>
		<description>Actually, it should be using the same instance - so there wouldn&#039;t be more than one ever..  Or at the very least close the active modal if there is one, then open the new one (resetting the clock)</description>
		<content:encoded><![CDATA[<p>Actually, it should be using the same instance &#8211; so there wouldn&#8217;t be more than one ever..  Or at the very least close the active modal if there is one, then open the new one (resetting the clock)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jay</title>
		<link>http://philpalmieri.com/2009/09/jquery-session-auto-timeout-with-prompt/comment-page-1/#comment-944</link>
		<dc:creator>Jay</dc:creator>
		<pubDate>Wed, 24 Mar 2010 18:26:18 +0000</pubDate>
		<guid isPermaLink="false">http://philpalmieri.com/?p=125#comment-944</guid>
		<description>I have an issue. While the modal_popup is in front , I click on the background (on IE) and then move modal_popup from the center. After 5 secs (thats my inactivity period), a new modal_popup comes back on the center. Shouldnt we open new window only when there is no other modal_popup screen?
Please advise</description>
		<content:encoded><![CDATA[<p>I have an issue. While the modal_popup is in front , I click on the background (on IE) and then move modal_popup from the center. After 5 secs (thats my inactivity period), a new modal_popup comes back on the center. Shouldnt we open new window only when there is no other modal_popup screen?<br />
Please advise</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Phil</title>
		<link>http://philpalmieri.com/2009/09/jquery-session-auto-timeout-with-prompt/comment-page-1/#comment-940</link>
		<dc:creator>Phil</dc:creator>
		<pubDate>Wed, 03 Mar 2010 22:03:34 +0000</pubDate>
		<guid isPermaLink="false">http://philpalmieri.com/?p=125#comment-940</guid>
		<description>Might be a dumb question, but do you have the jQuery library loaded?</description>
		<content:encoded><![CDATA[<p>Might be a dumb question, but do you have the jQuery library loaded?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: vishwajeet</title>
		<link>http://philpalmieri.com/2009/09/jquery-session-auto-timeout-with-prompt/comment-page-1/#comment-939</link>
		<dc:creator>vishwajeet</dc:creator>
		<pubDate>Wed, 03 Mar 2010 06:51:55 +0000</pubDate>
		<guid isPermaLink="false">http://philpalmieri.com/?p=125#comment-939</guid>
		<description>after including jquery-idleTimeout.js file 
i&#039;m getting error like this
jQuery is not defined
})(jQuery); 

waiting for reply</description>
		<content:encoded><![CDATA[<p>after including jquery-idleTimeout.js file<br />
i&#8217;m getting error like this<br />
jQuery is not defined<br />
})(jQuery); </p>
<p>waiting for reply</p>
]]></content:encoded>
	</item>
</channel>
</rss>
