<?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: Generate new session ID in Java EE?</title>
	<atom:link href="http://afongen.com/blog/2006/08/01/generate-new-session-id-in-java-ee/feed/" rel="self" type="application/rss+xml" />
	<link>http://afongen.com/blog/2006/08/01/generate-new-session-id-in-java-ee/</link>
	<description>Sam Buchanan's weblog</description>
	<lastBuildDate>Mon, 14 Nov 2011 13:06:58 -0500</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: thereddevil</title>
		<link>http://afongen.com/blog/2006/08/01/generate-new-session-id-in-java-ee/comment-page-1/#comment-30626</link>
		<dc:creator>thereddevil</dc:creator>
		<pubDate>Wed, 12 Jan 2011 12:54:42 +0000</pubDate>
		<guid isPermaLink="false">http://afongen.com/blog/2006/08/01/generate-new-session-id-in-java-ee/#comment-30626</guid>
		<description>It&#039;s getting weird guys, it&#039;s 2011 and still nothing (as far as I can tell). I&#039;m looking for a solution to this problem for almost 2 months but &quot;nada&quot;...

Using plain JSF, I could do a manual logout and log back in every time a user tried to log in order to renew the session ID.
But with icefaces, you can&#039;t logout and log back in programmatically, as the invalidateSession() method throws a SessionExpiredException...............</description>
		<content:encoded><![CDATA[<p>It&#8217;s getting weird guys, it&#8217;s 2011 and still nothing (as far as I can tell). I&#8217;m looking for a solution to this problem for almost 2 months but &#8220;nada&#8221;&#8230;</p>
<p>Using plain JSF, I could do a manual logout and log back in every time a user tried to log in order to renew the session ID.<br />
But with icefaces, you can&#8217;t logout and log back in programmatically, as the invalidateSession() method throws a SessionExpiredException&#8230;&#8230;&#8230;&#8230;&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Suresh</title>
		<link>http://afongen.com/blog/2006/08/01/generate-new-session-id-in-java-ee/comment-page-1/#comment-29432</link>
		<dc:creator>Suresh</dc:creator>
		<pubDate>Tue, 08 Dec 2009 15:16:00 +0000</pubDate>
		<guid isPermaLink="false">http://afongen.com/blog/2006/08/01/generate-new-session-id-in-java-ee/#comment-29432</guid>
		<description>Thanks Ritesh,

&quot;emptySessionPath=false in server.xml&quot; fixed my problem of session.invalidate() not resulting in a new session id. I&#039;ve not notcied any adverse side effects yet.</description>
		<content:encoded><![CDATA[<p>Thanks Ritesh,</p>
<p>&#8220;emptySessionPath=false in server.xml&#8221; fixed my problem of session.invalidate() not resulting in a new session id. I&#8217;ve not notcied any adverse side effects yet.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kiran</title>
		<link>http://afongen.com/blog/2006/08/01/generate-new-session-id-in-java-ee/comment-page-1/#comment-29381</link>
		<dc:creator>kiran</dc:creator>
		<pubDate>Thu, 05 Nov 2009 06:15:41 +0000</pubDate>
		<guid isPermaLink="false">http://afongen.com/blog/2006/08/01/generate-new-session-id-in-java-ee/#comment-29381</guid>
		<description>Hay guys,

I am facing the same problem in weblogic netui frame work.

Trying to generate the new session with following code.

getRequest().getSession(true);

but its giving the same id.. andy body know how to solve this isue pls reply..</description>
		<content:encoded><![CDATA[<p>Hay guys,</p>
<p>I am facing the same problem in weblogic netui frame work.</p>
<p>Trying to generate the new session with following code.</p>
<p>getRequest().getSession(true);</p>
<p>but its giving the same id.. andy body know how to solve this isue pls reply..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ritesh Tendulkar</title>
		<link>http://afongen.com/blog/2006/08/01/generate-new-session-id-in-java-ee/comment-page-1/#comment-28227</link>
		<dc:creator>Ritesh Tendulkar</dc:creator>
		<pubDate>Fri, 20 Mar 2009 16:27:37 +0000</pubDate>
		<guid isPermaLink="false">http://afongen.com/blog/2006/08/01/generate-new-session-id-in-java-ee/#comment-28227</guid>
		<description>For jboss 4.2.x change emptySessionPath=false in server.xml seems to fix the problem. Not sure what are the side-effects of this change though</description>
		<content:encoded><![CDATA[<p>For jboss 4.2.x change emptySessionPath=false in server.xml seems to fix the problem. Not sure what are the side-effects of this change though</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Preventing Session Fixation through Session ID Regeneration in Java and ASP.NET - KeepItLocked.net</title>
		<link>http://afongen.com/blog/2006/08/01/generate-new-session-id-in-java-ee/comment-page-1/#comment-28016</link>
		<dc:creator>Preventing Session Fixation through Session ID Regeneration in Java and ASP.NET - KeepItLocked.net</dc:creator>
		<pubDate>Tue, 24 Feb 2009 19:15:25 +0000</pubDate>
		<guid isPermaLink="false">http://afongen.com/blog/2006/08/01/generate-new-session-id-in-java-ee/#comment-28016</guid>
		<description>[...] that this does not regenerate the session ID necessarily. Looking at the comment thread for this blog, it appears JBoss doesn&#039;t regenerate the JSESSIONID using this code. I haven&#039;t confirmed this [...]</description>
		<content:encoded><![CDATA[<p>[...] that this does not regenerate the session ID necessarily. Looking at the comment thread for this blog, it appears JBoss doesn&#8217;t regenerate the JSESSIONID using this code. I haven&#8217;t confirmed this [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ludwig</title>
		<link>http://afongen.com/blog/2006/08/01/generate-new-session-id-in-java-ee/comment-page-1/#comment-10218</link>
		<dc:creator>Ludwig</dc:creator>
		<pubDate>Thu, 31 May 2007 13:37:53 +0000</pubDate>
		<guid isPermaLink="false">http://afongen.com/blog/2006/08/01/generate-new-session-id-in-java-ee/#comment-10218</guid>
		<description>Sam, 
yes, i am :-) It seems to be a very odd issue. The feedback I got so far is that this is by design although I haven&#039;t found any specifics about that in the servlet specifications. We are working with JBoss. If the client does not support cookie based session tracking the code example above does indeed generate a new session ID. However, once cookie based session tracking is supported, the session ID is always the one submitted in the JSESSIONID-Cookie, with no regard to the invalidate() method called before.</description>
		<content:encoded><![CDATA[<p>Sam,<br />
yes, i am :-) It seems to be a very odd issue. The feedback I got so far is that this is by design although I haven&#8217;t found any specifics about that in the servlet specifications. We are working with JBoss. If the client does not support cookie based session tracking the code example above does indeed generate a new session ID. However, once cookie based session tracking is supported, the session ID is always the one submitted in the JSESSIONID-Cookie, with no regard to the invalidate() method called before.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sam</title>
		<link>http://afongen.com/blog/2006/08/01/generate-new-session-id-in-java-ee/comment-page-1/#comment-10100</link>
		<dc:creator>Sam</dc:creator>
		<pubDate>Tue, 29 May 2007 17:32:16 +0000</pubDate>
		<guid isPermaLink="false">http://afongen.com/blog/2006/08/01/generate-new-session-id-in-java-ee/#comment-10100</guid>
		<description>You&#039;re right, that creates a new session -- that is, a new HttpSession object, but not a new session ID. Irritating. Nothing for you now, but I&#039;ll keep looking. As I can tell from googling around, you&#039;re still looking, too. :)</description>
		<content:encoded><![CDATA[<p>You&#8217;re right, that creates a new session &#8212; that is, a new HttpSession object, but not a new session ID. Irritating. Nothing for you now, but I&#8217;ll keep looking. As I can tell from googling around, you&#8217;re still looking, too. :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ludwig</title>
		<link>http://afongen.com/blog/2006/08/01/generate-new-session-id-in-java-ee/comment-page-1/#comment-9646</link>
		<dc:creator>Ludwig</dc:creator>
		<pubDate>Tue, 22 May 2007 12:42:36 +0000</pubDate>
		<guid isPermaLink="false">http://afongen.com/blog/2006/08/01/generate-new-session-id-in-java-ee/#comment-9646</guid>
		<description>Hm.
We are using JBoss here and trying to force our webapp to generate a new session ID- doesn&#039;t work:
// session.getID() is &quot;foo&quot;
session.invalidate();
req.getSession(true); // should create new session id
//session.getID() is &quot;foo&quot; again.

How do you generate a new session ID?,</description>
		<content:encoded><![CDATA[<p>Hm.<br />
We are using JBoss here and trying to force our webapp to generate a new session ID- doesn&#8217;t work:<br />
// session.getID() is &#8220;foo&#8221;<br />
session.invalidate();<br />
req.getSession(true); // should create new session id<br />
//session.getID() is &#8220;foo&#8221; again.</p>
<p>How do you generate a new session ID?,</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sam</title>
		<link>http://afongen.com/blog/2006/08/01/generate-new-session-id-in-java-ee/comment-page-1/#comment-9596</link>
		<dc:creator>Sam</dc:creator>
		<pubDate>Mon, 21 May 2007 12:41:37 +0000</pubDate>
		<guid isPermaLink="false">http://afongen.com/blog/2006/08/01/generate-new-session-id-in-java-ee/#comment-9596</guid>
		<description>Nope, sorry. Just the tiresome, manual process of copying the session attributes over to the new session.</description>
		<content:encoded><![CDATA[<p>Nope, sorry. Just the tiresome, manual process of copying the session attributes over to the new session.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ludwig</title>
		<link>http://afongen.com/blog/2006/08/01/generate-new-session-id-in-java-ee/comment-page-1/#comment-9578</link>
		<dc:creator>Ludwig</dc:creator>
		<pubDate>Mon, 21 May 2007 08:55:26 +0000</pubDate>
		<guid isPermaLink="false">http://afongen.com/blog/2006/08/01/generate-new-session-id-in-java-ee/#comment-9578</guid>
		<description>Hi Sam,
we are having the same problems here.
Do you know a solution now?

Ludwig</description>
		<content:encoded><![CDATA[<p>Hi Sam,<br />
we are having the same problems here.<br />
Do you know a solution now?</p>
<p>Ludwig</p>
]]></content:encoded>
	</item>
</channel>
</rss>

