<?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: Handling J2EE session with cookies disabled</title>
	<atom:link href="http://www.rupeshk.org/blog/index.php/2006/09/handling-j2ee-session-with-cookies-disabled/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.rupeshk.org/blog/index.php/2006/09/handling-j2ee-session-with-cookies-disabled/</link>
	<description>My Views on ColdFusion, Java and related technologies</description>
	<lastBuildDate>Mon, 06 Feb 2012 13:41:45 -0800</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Andrew Mercer</title>
		<link>http://www.rupeshk.org/blog/index.php/2006/09/handling-j2ee-session-with-cookies-disabled/comment-page-1/#comment-72</link>
		<dc:creator>Andrew Mercer</dc:creator>
		<pubDate>Mon, 22 Jan 2007 06:45:00 +0000</pubDate>
		<guid isPermaLink="false">http://rupesh106.wordpress.com/2006/09/12/handling-j2ee-session-with-cookies-disabled/#comment-72</guid>
		<description>I am also experiencing problems with session variables in a clusted environment.&lt;br /&gt;&lt;br /&gt;With my test code, cookies on for the cluster URL - all fine. Disable cookies - session lost.&lt;br /&gt;&lt;br /&gt;Go to either instance directly (via port) with cookies disabled it is fine, ie session stays.&lt;br /&gt;&lt;br /&gt;CFMX 702 Ent&lt;br /&gt;Win 2003&lt;br /&gt;J2ee vars - sticky on</description>
		<content:encoded><![CDATA[<p>I am also experiencing problems with session variables in a clusted environment.</p>
<p>With my test code, cookies on for the cluster URL &#8211; all fine. Disable cookies &#8211; session lost.</p>
<p>Go to either instance directly (via port) with cookies disabled it is fine, ie session stays.</p>
<p>CFMX 702 Ent<br />Win 2003<br />J2ee vars &#8211; sticky on</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Arpita</title>
		<link>http://www.rupeshk.org/blog/index.php/2006/09/handling-j2ee-session-with-cookies-disabled/comment-page-1/#comment-71</link>
		<dc:creator>Arpita</dc:creator>
		<pubDate>Tue, 19 Dec 2006 03:18:00 +0000</pubDate>
		<guid isPermaLink="false">http://rupesh106.wordpress.com/2006/09/12/handling-j2ee-session-with-cookies-disabled/#comment-71</guid>
		<description>Nice to read all of ur discussion..&lt;br/&gt;I am also facing one Jsessionid problem while IT security testing.&lt;br/&gt; telnet our site then&lt;br/&gt;pass the parameters like that&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;POST /sonystyle/searchsonystyle.do HTTP/1.0&lt;br/&gt;Content-Type: application/x-www-form-urlencoded&lt;br/&gt;Host: www.sonystyle.com.sg&lt;br/&gt;Cookie: JSESSIONID=&quot;&lt;br/&gt;Content-Length: 10&lt;br/&gt;&lt;br/&gt;query=sony&lt;br/&gt;&lt;br/&gt;if JSESSIONID value is &quot;&lt;br/&gt;then I am getting error.&lt;br/&gt;how to handle this JSESSIONID ?</description>
		<content:encoded><![CDATA[<p>Nice to read all of ur discussion..<br />I am also facing one Jsessionid problem while IT security testing.<br /> telnet our site then<br />pass the parameters like that</p>
<p>POST /sonystyle/searchsonystyle.do HTTP/1.0<br />Content-Type: application/x-www-form-urlencoded<br />Host: <a href="http://www.sonystyle.com.sg" rel="nofollow">http://www.sonystyle.com.sg</a><br />Cookie: JSESSIONID=&#8221;<br />Content-Length: 10</p>
<p>query=sony</p>
<p>if JSESSIONID value is &#8220;<br />then I am getting error.<br />how to handle this JSESSIONID ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dawesi</title>
		<link>http://www.rupeshk.org/blog/index.php/2006/09/handling-j2ee-session-with-cookies-disabled/comment-page-1/#comment-70</link>
		<dc:creator>Dawesi</dc:creator>
		<pubDate>Fri, 22 Sep 2006 01:27:00 +0000</pubDate>
		<guid isPermaLink="false">http://rupesh106.wordpress.com/2006/09/12/handling-j2ee-session-with-cookies-disabled/#comment-70</guid>
		<description>Nice one bro. Thanks for the heads up!</description>
		<content:encoded><![CDATA[<p>Nice one bro. Thanks for the heads up!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joerg Zimmer</title>
		<link>http://www.rupeshk.org/blog/index.php/2006/09/handling-j2ee-session-with-cookies-disabled/comment-page-1/#comment-69</link>
		<dc:creator>Joerg Zimmer</dc:creator>
		<pubDate>Thu, 21 Sep 2006 07:23:00 +0000</pubDate>
		<guid isPermaLink="false">http://rupesh106.wordpress.com/2006/09/12/handling-j2ee-session-with-cookies-disabled/#comment-69</guid>
		<description>Hi again :)&lt;br/&gt;&lt;br/&gt;You&#039;re right. 2 Webservers with Coldfusion behind a Software Loadbalancer (ldirectord). The load balancer is able to handle sticky sessions.. but it&#039;s not turned on at the moment...&lt;br/&gt;&lt;br/&gt;Both connectors have the cluster connected.. not a node.. this should be ok.&lt;br/&gt;&lt;br/&gt;Joerg</description>
		<content:encoded><![CDATA[<p>Hi again <img src='http://www.rupeshk.org/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>You&#8217;re right. 2 Webservers with Coldfusion behind a Software Loadbalancer (ldirectord). The load balancer is able to handle sticky sessions.. but it&#8217;s not turned on at the moment&#8230;</p>
<p>Both connectors have the cluster connected.. not a node.. this should be ok.</p>
<p>Joerg</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rupesh Kumar</title>
		<link>http://www.rupeshk.org/blog/index.php/2006/09/handling-j2ee-session-with-cookies-disabled/comment-page-1/#comment-68</link>
		<dc:creator>Rupesh Kumar</dc:creator>
		<pubDate>Wed, 20 Sep 2006 17:23:00 +0000</pubDate>
		<guid isPermaLink="false">http://rupesh106.wordpress.com/2006/09/12/handling-j2ee-session-with-cookies-disabled/#comment-68</guid>
		<description>Hi Joerg,&lt;br/&gt;What kind of load balancer are you using? Is it a hardware loadbalancer or software loadbalancer? &lt;br/&gt;As I understand, you have a cluster of two cf nodes each of them behind a webserver using a connector. So actually you have two webservers with a load balancer in front. Is that correct?&lt;br/&gt;If it is, then please check if the loadbalancer supports the sticky session concept. If it does then I think it might be a better idea to enable that. &lt;br/&gt;Are both the connectors aware of both the cluster nodes? Let me check with JRun guys here if that would work or if there are any issues there. I know for sure that when connector is used as a load balancer then it does route the request proeprly maintaining session stickiness.&lt;br/&gt;Rupesh</description>
		<content:encoded><![CDATA[<p>Hi Joerg,<br />What kind of load balancer are you using? Is it a hardware loadbalancer or software loadbalancer? <br />As I understand, you have a cluster of two cf nodes each of them behind a webserver using a connector. So actually you have two webservers with a load balancer in front. Is that correct?<br />If it is, then please check if the loadbalancer supports the sticky session concept. If it does then I think it might be a better idea to enable that. <br />Are both the connectors aware of both the cluster nodes? Let me check with JRun guys here if that would work or if there are any issues there. I know for sure that when connector is used as a load balancer then it does route the request proeprly maintaining session stickiness.<br />Rupesh</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joerg Zimmer</title>
		<link>http://www.rupeshk.org/blog/index.php/2006/09/handling-j2ee-session-with-cookies-disabled/comment-page-1/#comment-67</link>
		<dc:creator>Joerg Zimmer</dc:creator>
		<pubDate>Wed, 20 Sep 2006 11:54:00 +0000</pubDate>
		<guid isPermaLink="false">http://rupesh106.wordpress.com/2006/09/12/handling-j2ee-session-with-cookies-disabled/#comment-67</guid>
		<description>Hi Rupesh...&lt;br/&gt;sorry for responding so late...&lt;br/&gt;The site is faced to external users and the proxy is located somewhere on client-side...&lt;br/&gt;&lt;br/&gt;I discovered something new... &lt;br/&gt;We currently run a site in a subframe of our customers website... Because our site runs under a differnt domain, IE security settings forbid cookies from our site.&lt;br/&gt;So we have a similar scenario here... This site runs on our CFMX 7.0.2 Cluster with 2 Nodes and a load-balancer in front of the webservers...&lt;br/&gt;While usere where klicking around in our site, it seemed that with every click there was a new session generated for the user.&lt;br/&gt;Even urlsessionformat did not resolve this... &lt;br/&gt;Our Cluster ran with sticky sessions and session-replication turned off. I thought that the connector would handle the sticky-sessions and always use the same cfmx node for one session. But obviously it didn&#039;t - turning on session-replication solved this problem... &lt;br/&gt;&lt;br/&gt;Are the connectors on the 2 webservers unable to interchange sticky-session data? maybe the load-balancer in front of the cluster should have user-persistent routing turned on...&lt;br/&gt;Did I put this clear? Better an example :)&lt;br/&gt;&lt;br/&gt;user requests page&lt;br/&gt;load balancer routes him to server1&lt;br/&gt;connector on server1 routes him to server1&lt;br/&gt;session is created on server1&lt;br/&gt;&lt;br/&gt;user requests next page&lt;br/&gt;load balancer routes him to server2&lt;br/&gt;connector on server2 routes him to server2&lt;br/&gt;new session is created on server2 because sessionid is unknown&lt;br/&gt;&lt;br/&gt;user requests next page&lt;br/&gt;load balancer routes him to server1&lt;br/&gt;connector on server1 routes him to server1&lt;br/&gt;new session is created on server1 because sessionid is unknown again.</description>
		<content:encoded><![CDATA[<p>Hi Rupesh&#8230;<br />sorry for responding so late&#8230;<br />The site is faced to external users and the proxy is located somewhere on client-side&#8230;</p>
<p>I discovered something new&#8230; <br />We currently run a site in a subframe of our customers website&#8230; Because our site runs under a differnt domain, IE security settings forbid cookies from our site.<br />So we have a similar scenario here&#8230; This site runs on our CFMX 7.0.2 Cluster with 2 Nodes and a load-balancer in front of the webservers&#8230;<br />While usere where klicking around in our site, it seemed that with every click there was a new session generated for the user.<br />Even urlsessionformat did not resolve this&#8230; <br />Our Cluster ran with sticky sessions and session-replication turned off. I thought that the connector would handle the sticky-sessions and always use the same cfmx node for one session. But obviously it didn&#8217;t &#8211; turning on session-replication solved this problem&#8230; </p>
<p>Are the connectors on the 2 webservers unable to interchange sticky-session data? maybe the load-balancer in front of the cluster should have user-persistent routing turned on&#8230;<br />Did I put this clear? Better an example <img src='http://www.rupeshk.org/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>user requests page<br />load balancer routes him to server1<br />connector on server1 routes him to server1<br />session is created on server1</p>
<p>user requests next page<br />load balancer routes him to server2<br />connector on server2 routes him to server2<br />new session is created on server2 because sessionid is unknown</p>
<p>user requests next page<br />load balancer routes him to server1<br />connector on server1 routes him to server1<br />new session is created on server1 because sessionid is unknown again.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rupesh Kumar</title>
		<link>http://www.rupeshk.org/blog/index.php/2006/09/handling-j2ee-session-with-cookies-disabled/comment-page-1/#comment-66</link>
		<dc:creator>Rupesh Kumar</dc:creator>
		<pubDate>Fri, 15 Sep 2006 12:19:00 +0000</pubDate>
		<guid isPermaLink="false">http://rupesh106.wordpress.com/2006/09/12/handling-j2ee-session-with-cookies-disabled/#comment-66</guid>
		<description>Hi Joerg,&lt;br/&gt;When cookies are enabled, session is tracked using cookies and urltoken will not be used by the server in that case. &lt;br/&gt;It seems to me that it was a badly configured proxy. A proxy should never cache dynamic content and should only cache the static pages like html and images. &lt;br/&gt;Was it a proxy in your company and faced by intranet users? or some external customers reported it to you?&lt;br/&gt;&lt;br/&gt;Rupesh.</description>
		<content:encoded><![CDATA[<p>Hi Joerg,<br />When cookies are enabled, session is tracked using cookies and urltoken will not be used by the server in that case. <br />It seems to me that it was a badly configured proxy. A proxy should never cache dynamic content and should only cache the static pages like html and images. <br />Was it a proxy in your company and faced by intranet users? or some external customers reported it to you?</p>
<p>Rupesh.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joerg Zimmer</title>
		<link>http://www.rupeshk.org/blog/index.php/2006/09/handling-j2ee-session-with-cookies-disabled/comment-page-1/#comment-65</link>
		<dc:creator>Joerg Zimmer</dc:creator>
		<pubDate>Fri, 15 Sep 2006 07:14:00 +0000</pubDate>
		<guid isPermaLink="false">http://rupesh106.wordpress.com/2006/09/12/handling-j2ee-session-with-cookies-disabled/#comment-65</guid>
		<description>hi rupesh...&lt;br/&gt;this is exactly what I did in a project lately...&lt;br/&gt;but I ran into a problem:&lt;br/&gt;urlsessionformat() only rewrites the url if the client has cookies disabled... so most of the time your url would just look like &quot;test.cfm&quot;&lt;br/&gt;&lt;br/&gt;This shouldn&#039;t be a problem, but I got informed that in some cases users got to see pages filled with other user&#039;s data.&lt;br/&gt;Seems that these pages got cached by the company-proxy...&lt;br/&gt;After appending the default #session.urltoken# everything worked just fine...&lt;br/&gt;Did I miss to adjust something or what was it?!&lt;br/&gt;&lt;br/&gt;greetings&lt;br/&gt;&lt;br/&gt;Joerg Zimmer</description>
		<content:encoded><![CDATA[<p>hi rupesh&#8230;<br />this is exactly what I did in a project lately&#8230;<br />but I ran into a problem:<br />urlsessionformat() only rewrites the url if the client has cookies disabled&#8230; so most of the time your url would just look like &#8220;test.cfm&#8221;</p>
<p>This shouldn&#8217;t be a problem, but I got informed that in some cases users got to see pages filled with other user&#8217;s data.<br />Seems that these pages got cached by the company-proxy&#8230;<br />After appending the default #session.urltoken# everything worked just fine&#8230;<br />Did I miss to adjust something or what was it?!</p>
<p>greetings</p>
<p>Joerg Zimmer</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rupesh Kumar</title>
		<link>http://www.rupeshk.org/blog/index.php/2006/09/handling-j2ee-session-with-cookies-disabled/comment-page-1/#comment-64</link>
		<dc:creator>Rupesh Kumar</dc:creator>
		<pubDate>Wed, 13 Sep 2006 08:03:00 +0000</pubDate>
		<guid isPermaLink="false">http://rupesh106.wordpress.com/2006/09/12/handling-j2ee-session-with-cookies-disabled/#comment-64</guid>
		<description>Oh yes. thanks. edited.</description>
		<content:encoded><![CDATA[<p>Oh yes. thanks. edited.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anonymous</title>
		<link>http://www.rupeshk.org/blog/index.php/2006/09/handling-j2ee-session-with-cookies-disabled/comment-page-1/#comment-63</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Tue, 12 Sep 2006 19:55:00 +0000</pubDate>
		<guid isPermaLink="false">http://rupesh106.wordpress.com/2006/09/12/handling-j2ee-session-with-cookies-disabled/#comment-63</guid>
		<description>Good to know about this technique - thanx! Might not want to assign to a variable called &#039;url&#039; tho&#039; since it is a scope...</description>
		<content:encoded><![CDATA[<p>Good to know about this technique &#8211; thanx! Might not want to assign to a variable called &#8216;url&#8217; tho&#8217; since it is a scope&#8230;</p>
]]></content:encoded>
	</item>
</channel>
</rss>

