<?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 for John Hite's Weblog</title>
	<atom:link href="http://blog.johnhite.com/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.johnhite.com</link>
	<description>Software Development and all that Jazz</description>
	<pubDate>Mon, 06 Feb 2012 23:13:29 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>Comment on GWT/GXT and Session Timeouts by Annuk</title>
		<link>http://blog.johnhite.com/2010/09/02/gwtgxt-and-session-timeouts/comment-page-1/#comment-203</link>
		<dc:creator>Annuk</dc:creator>
		<pubDate>Mon, 06 Dec 2010 14:18:33 +0000</pubDate>
		<guid isPermaLink="false">http://blog.johnhite.com/2010/09/02/gwtgxt-and-session-timeouts/#comment-203</guid>
		<description>Hii john,
great work...
I tried implementing your solution.
In web.xml the session timeout was set to 1.
But when i implement your code.it calls the checkusersession  method after every minute and the session is still active.it never calls the login page after a minute.

It should call the login page after a minute???</description>
		<content:encoded><![CDATA[<p>Hii john,<br />
great work&#8230;<br />
I tried implementing your solution.<br />
In web.xml the session timeout was set to 1.<br />
But when i implement your code.it calls the checkusersession  method after every minute and the session is still active.it never calls the login page after a minute.</p>
<p>It should call the login page after a minute???</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on GWT/GXT and Session Timeouts by nicola</title>
		<link>http://blog.johnhite.com/2010/09/02/gwtgxt-and-session-timeouts/comment-page-1/#comment-162</link>
		<dc:creator>nicola</dc:creator>
		<pubDate>Mon, 18 Oct 2010 12:38:24 +0000</pubDate>
		<guid isPermaLink="false">http://blog.johnhite.com/2010/09/02/gwtgxt-and-session-timeouts/#comment-162</guid>
		<description>some things were cut off from my response... I put pseudo code in &lt;&gt; without quoting them... I will correct soon</description>
		<content:encoded><![CDATA[<p>some things were cut off from my response&#8230; I put pseudo code in &lt;&gt; without quoting them&#8230; I will correct soon</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on GWT/GXT and Session Timeouts by nicola</title>
		<link>http://blog.johnhite.com/2010/09/02/gwtgxt-and-session-timeouts/comment-page-1/#comment-161</link>
		<dc:creator>nicola</dc:creator>
		<pubDate>Mon, 18 Oct 2010 11:49:54 +0000</pubDate>
		<guid isPermaLink="false">http://blog.johnhite.com/2010/09/02/gwtgxt-and-session-timeouts/#comment-161</guid>
		<description>Hi John, in my algorithm I consider:
	-	session duration
	-	session creation time
	-	last valid access time (last access to the server which wasn't for retrieving session data)
	-	last request for session

In my implementation i first launch session handling when the login has been done. So I retrieve the first two parameters specified above from the server, save them in instance variables, set the  to  and  to ; then I schedule the next session check for  - , where  is the gap of which the control anticipates the real server session expire (I setted it to 20 seconds for having the time to do a couple of attempts in case of error).
So now the control passes to a method that checks the session periodically.
For checking the validity of the session I retrieve the same two parameters from the server (session duration and creation time). First, if the session creation time retrieved now and that stored in the instance variable are different I unvalidate the session: this scenario shouldn't happen often.
Then I calculate the time passed between the last valid request (i.e. request not for retrieving session data and this request): if this time is more than  +  (some as above) i make logout.
Otherwise the session is valid, so I set  to the time retrieved in this check, then I schedule the next check of  -  + . I hope that my article is clear and the english isn't too wrong. I'm waiting for the response, bye



nic</description>
		<content:encoded><![CDATA[<p>Hi John, in my algorithm I consider:<br />
	-	session duration<br />
	-	session creation time<br />
	-	last valid access time (last access to the server which wasn&#8217;t for retrieving session data)<br />
	-	last request for session</p>
<p>In my implementation i first launch session handling when the login has been done. So I retrieve the first two parameters specified above from the server, save them in instance variables, set the  to  and  to ; then I schedule the next session check for  - , where  is the gap of which the control anticipates the real server session expire (I setted it to 20 seconds for having the time to do a couple of attempts in case of error).<br />
So now the control passes to a method that checks the session periodically.<br />
For checking the validity of the session I retrieve the same two parameters from the server (session duration and creation time). First, if the session creation time retrieved now and that stored in the instance variable are different I unvalidate the session: this scenario shouldn&#8217;t happen often.<br />
Then I calculate the time passed between the last valid request (i.e. request not for retrieving session data and this request): if this time is more than  +  (some as above) i make logout.<br />
Otherwise the session is valid, so I set  to the time retrieved in this check, then I schedule the next check of  -  + . I hope that my article is clear and the english isn&#8217;t too wrong. I&#8217;m waiting for the response, bye</p>
<p>nic</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on GWT/GXT and Session Timeouts by John</title>
		<link>http://blog.johnhite.com/2010/09/02/gwtgxt-and-session-timeouts/comment-page-1/#comment-152</link>
		<dc:creator>John</dc:creator>
		<pubDate>Sun, 10 Oct 2010 18:43:20 +0000</pubDate>
		<guid isPermaLink="false">http://blog.johnhite.com/2010/09/02/gwtgxt-and-session-timeouts/#comment-152</guid>
		<description>I'd be interested in hearing more details. If you have a blog with the details I can link to it. Or if you just give me the details I'll update my post with your suggestions. Thanks!</description>
		<content:encoded><![CDATA[<p>I&#8217;d be interested in hearing more details. If you have a blog with the details I can link to it. Or if you just give me the details I&#8217;ll update my post with your suggestions. Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on GWT/GXT and Session Timeouts by nicola</title>
		<link>http://blog.johnhite.com/2010/09/02/gwtgxt-and-session-timeouts/comment-page-1/#comment-149</link>
		<dc:creator>nicola</dc:creator>
		<pubDate>Wed, 06 Oct 2010 11:05:40 +0000</pubDate>
		<guid isPermaLink="false">http://blog.johnhite.com/2010/09/02/gwtgxt-and-session-timeouts/#comment-149</guid>
		<description>Hi John, good post: I was looking for a solution for this problem and now I implemented it thanks your post (and the post you readed too).
The principle that I adopted is the same you exposed but with some slight differences: I retrieve data from server a few before the session has to expire and on the client I use a session length a few less than that on the server. Generally the session expires at the right moment (counting the last user activity that involved the server), only a few before than server session would have expired.
If you want I can be more detailed, cheers</description>
		<content:encoded><![CDATA[<p>Hi John, good post: I was looking for a solution for this problem and now I implemented it thanks your post (and the post you readed too).<br />
The principle that I adopted is the same you exposed but with some slight differences: I retrieve data from server a few before the session has to expire and on the client I use a session length a few less than that on the server. Generally the session expires at the right moment (counting the last user activity that involved the server), only a few before than server session would have expired.<br />
If you want I can be more detailed, cheers</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Redirecting System.out to a JTextArea by John</title>
		<link>http://blog.johnhite.com/2010/04/05/redirecting-systemout-to-a-jtextarea/comment-page-1/#comment-119</link>
		<dc:creator>John</dc:creator>
		<pubDate>Sat, 18 Sep 2010 19:52:11 +0000</pubDate>
		<guid isPermaLink="false">http://blog.johnhite.com/?p=3#comment-119</guid>
		<description>&lt;a href="#comment-117" rel="nofollow"&gt;@Emmanuel &lt;/a&gt; 
Well, it really depends on what you are doing. I'm assuming that you have a swing project and have a main method of some sort. That's probably the place to do it. You just have to add a JTextArea somewhere in your application then  use the code in my second code block to initialize the TextAreaOutputStream.</description>
		<content:encoded><![CDATA[<p><a href="#comment-117" rel="nofollow">@Emmanuel </a><br />
Well, it really depends on what you are doing. I&#8217;m assuming that you have a swing project and have a main method of some sort. That&#8217;s probably the place to do it. You just have to add a JTextArea somewhere in your application then  use the code in my second code block to initialize the TextAreaOutputStream.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Redirecting System.out to a JTextArea by Emmanuel</title>
		<link>http://blog.johnhite.com/2010/04/05/redirecting-systemout-to-a-jtextarea/comment-page-1/#comment-117</link>
		<dc:creator>Emmanuel</dc:creator>
		<pubDate>Sat, 18 Sep 2010 13:07:03 +0000</pubDate>
		<guid isPermaLink="false">http://blog.johnhite.com/?p=3#comment-117</guid>
		<description>how do i implement your codes into my project?
where should the codes be?</description>
		<content:encoded><![CDATA[<p>how do i implement your codes into my project?<br />
where should the codes be?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Redirecting System.out to a JTextArea by Zhelyan</title>
		<link>http://blog.johnhite.com/2010/04/05/redirecting-systemout-to-a-jtextarea/comment-page-1/#comment-10</link>
		<dc:creator>Zhelyan</dc:creator>
		<pubDate>Fri, 30 Apr 2010 11:58:59 +0000</pubDate>
		<guid isPermaLink="false">http://blog.johnhite.com/?p=3#comment-10</guid>
		<description>Extremely fast, well done</description>
		<content:encoded><![CDATA[<p>Extremely fast, well done</p>
]]></content:encoded>
	</item>
</channel>
</rss>

