Skip to Content

Recently we faced a session expiration problem while accessing Web Applications running on SAP J2EE Engine in a load balanced environment with multiple physical servers to achieve High Availability(HA).

To understand and fix the problem we have to understand the structure of SAP J2EE Engine Cookie in the Load Balanced Environment. Since this is a very common scenario, I thought lets share this with everyone.

When a user accesses a Web Application (say WebDynpro), the SAP J2EE Engine returns a cookie for performing session tracking and load balancing. You can check this cookie using the keyword

“javascript:document.cookie”

in the address field in the browser window where the application is being accessed. If you are accessing Web Application directly (without SAP Enterprise Portal) and have a load balancer in your environment, the output will be similar to image below.

image

If you are accessing Web Application using SAP Enterprise Portal and have a load balancer in your environment, you will see an output similar to image below.

image

This cookie generated by SAP J2EE Engine has two main parts:\j2ee\configtool

image

After understanding the above we were able to solve the session expiration problem with Cisco Load Balancer which I will explain in my next Blog.

References:

http://help.sap.com/saphelp_nw04/helpdata/en/5b/ac1a0a8b8d6b4da3b79a7fe0aeabd8/frameset.htm

http://help.sap.com/saphelp_nw04/helpdata/en/f2/d7914b8deb48f090c0343ef1d907f0/frameset.htm

To report this post you need to login first.

2 Comments

You must be Logged on to comment or reply to a post.

Leave a Reply