WebSphere HTTP Server - jsessionid cookie from IBM httpserver to app server in cluster

This is Interesting: Free IT Magazines  
Home > Archive > WebSphere HTTP Server > August 2006 > jsessionid cookie from IBM httpserver to app server in cluster





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author jsessionid cookie from IBM httpserver to app server in cluster

2006-04-27, 8:21 am

Hello All,
Iam stuck in this problem for 2 days.My application was working fine on a standalone websphere app server v6.0. I was using cookies for session tracking and SSO for security.[using LTPA token cookie ]
Now i moved my application to cluster which has IBM HTTP Server along with 2 websphere nodes.And all of a sudden my application uses new session for each and every request.Iam loosing session object.On enabling tracing,iam sessing that my websphere App se
rverv6.0 is not getting cookie from IBM HTTP Server.
I tried out all options but no luck.
If i disable security for my application,everything works fine.If i enable security,i get issues with session.
Heres my plugin-cfg.xml.Any help would be greatly appreciated.

Thanks
Prashanth

========================================
========================
<?xml version="1.0" encoding="ISO-8859-1"?>
<!--HTTP server plugin config file for the webserver gciwas01Cell01.gciwas01Node01.webserver01 generated on 2006.04.06 at 11:58:37 AM BST-->
<Config ASDisableNagle="false" AcceptAllContent="false" AppServerPortPreference="HostHeader" ChunkedResponse="false" FIPSEnable="false" IISDisableNagle="false" IISPluginPriority="High" IgnoreDNSFailures="false" RefreshInterval="60" ResponseChunkSize="64"
VHostMatchingCompat="false">
<Log LogLevel="Error" Name="/opt/IBM/WebSphere/Plugins/logs/webserver01/http_plugin.log"/>
<Property Name="ESIEnable" Value="true"/>
<Property Name="ESIMaxCacheSize" Value="1024"/>
<Property Name="ESIInvalidationMonitor" Value="false"/>
<VirtualHostGroup Name="default_host">
<VirtualHost Name="*:9080"/>
<VirtualHost Name="*:80"/>
<VirtualHost Name="*:9443"/>
<VirtualHost Name="gciwas02:9080"/>
<VirtualHost Name="gciwas02:80"/>
<VirtualHost Name="gciwas02:9443"/>
</VirtualHostGroup>
<ServerCluster CloneSeparatorChange="false" LoadBalance="Round Robin" Name="gcicluster01" PostBufferSize="64" PostSizeLimit="-1" RemoveSpecialHeaders="false" RetryInterval="60">
<Server CloneID="10r34qc8p" ConnectTimeout="0" ExtendedHandshake="false" LoadBalanceWeight="2" MaxConnections="-1" Name="gciwas01Node01_server01" ServerIOTimeout="0" WaitForContinue="false">
<Transport Hostname="gciwas01" Port="9081" Protocol="http"/>
<Transport Hostname="gciwas01" Port="9444" Protocol="https">
<Property Name="keyring" Value="/opt/IBM/WebSphere/Plugins/etc/plugin-key.kdb"/>
<Property Name="stashfile" Value="/opt/IBM/WebSphere/Plugins/etc/plugin-key.sth"/>
</Transport>
</Server>
<Server CloneID="10r34qdis" ConnectTimeout="0" ExtendedHandshake="false" LoadBalanceWeight="2" MaxConnections="-1" Name="gciwas02Node01_server01" ServerIOTimeout="0" WaitForContinue="false">
<Transport Hostname="gciwas02" Port="9081" Protocol="http"/>
<Transport Hostname="gciwas02" Port="9444" Protocol="https">
<Property Name="keyring" Value="/opt/IBM/WebSphere/Plugins/etc/plugin-key.kdb"/>
<Property Name="stashfile" Value="/opt/IBM/WebSphere/Plugins/etc/plugin-key.sth"/>
</Transport>
</Server>
<PrimaryServers>
<Server Name="gciwas01Node01_server01"/>
<Server Name="gciwas02Node01_server01"/>
</PrimaryServers>
</ServerCluster>
<UriGroup Name="default_host_gcicluster01_URIs">
<Uri AffinityCookie="JSESSIONID" AffinityURLIdentifier="jsessionid" Name="/PlantsByWebSphere/*"/>
<Uri AffinityCookie="JSESSIONID" AffinityURLIdentifier="jsessionid" Name="/PlantsByWebSphere/docs/*"/>
<Uri AffinityCookie="JSESSIONID" AffinityURLIdentifier="jsessionid" Name="/SamplesGallery/*"/>
<Uri AffinityCookie="JSESSIONID" AffinityURLIdentifier="jsessionid" Name="/WSsamples/*"/>
<Uri AffinityCookie="JSESSIONID" AffinityURLIdentifier="jsessionid" Name="/ivt/*"/>
<Uri AffinityCookie="JSESSIONID" AffinityURLIdentifier="jsessionid" Name="/snoop/*"/>
<Uri AffinityCookie="JSESSIONID" AffinityURLIdentifier="jsessionid" Name="/hello"/>
<Uri AffinityCookie="JSESSIONID" AffinityURLIdentifier="jsessionid" Name="/hitcount"/>
<Uri AffinityCookie="JSESSIONID" AffinityURLIdentifier="jsessionid" Name="*.jsp"/>
<Uri AffinityCookie="JSESSIONID" AffinityURLIdentifier="jsessionid" Name="*.jsv"/>
<Uri AffinityCookie="JSESSIONID" AffinityURLIdentifier="jsessionid" Name="*.jsw"/>
<Uri AffinityCookie="JSESSIONID" AffinityURLIdentifier="jsessionid" Name="/j_security_check"/>
<Uri AffinityCookie="JSESSIONID" AffinityURLIdentifier="jsessionid" Name="/ibm_security_logout"/>
<Uri AffinityCookie="JSESSIONID" AffinityURLIdentifier="jsessionid" Name="/servlet/*"/>
<Uri AffinityCookie="JSESSIONID" AffinityURLIdentifier="jsessionid" Name="/GalleonCIWeb/*"/>
<Uri AffinityCookie="JSESSIONID" AffinityURLIdentifier="jsessionid" Name="/cachemonitor/*"/>
<Uri AffinityCookie="JSESSIONID" AffinityURLIdentifier="jsessionid" Name="/GalCICCIWeb/*"/>
</UriGroup>
<Route ServerCluster="gcicluster01" UriGroup="default_host_gcicluster01_URIs" VirtualHostGroup="default_host"/>
<RequestMetrics armEnabled="false" loggingEnabled="false" rmEnabled="false" traceLevel="HOPS">
<filters enable="false" type="URI">
<filterValues enable="false" value="/snoop"/>
<filterValues enable="false" value="/hitcount"/>
</filters>
<filters enable="false" type="SOURCE_IP">
<filterValues enable="false" value="255.255.255.255"/>
<filterValues enable="false" value="254.254.254.254"/>
</filters>
<filters enable="false" type="JMS">
<filterValues enable="false" value="destination=aaa:topic=bbb"/>
</filters>
<filters enable="false" type="WEB_SERVICES">
<filterValues enable="false" value="wsdlPort=aaa:op=bbb:nameSpace=ccc"/>
</filters>
</RequestMetrics>
</Config>
========================================
=============== 1,4 Top

yevanth

2006-04-27, 8:21 am

Did you get a resolution on this? If so please let me know as I am in the same situation.


Regards

Ravi Yalamanchili

2006-04-27, 8:21 am

I resolved it by slogging for nearly 2 days..
The problem was with the cookie ordering..If i enalble security,WebSphere sends LTPA cookie along with JsessionID cookie...So if your client sends any other cookie ahead of jsessionid cookie[I mean ordering of cookie..In my case LTPA cookie was going ahea
d of jsessionID cookie],IBM App Server creates new session each and every time and it ignores jsessionid cookie.
But if you send jsessionID cookie ahead of all other cookies,than everything works fine..There is no problem with related to IBM HTTP Server..May be some issues with IBM APP Server..It always needs jessionID cookie ahead of all other cookies...

Since i use Java thick client,i easily reordered cookie ordering..But if you use browser based client,i dont know how you reorder cookies as its being handled by browser..

I user WAS ND v6.0.2 on Linux..

All the Best

Prashanth

bobwilmes

2006-08-04, 6:02 pm

There is a bug in Websphere with JSESSIONID.

http://www-1.ibm.com/support/docvie...uid=swg1PQ85565
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com