Skip to Content
0
Former Member
Feb 07, 2007 at 07:41 PM

MYSAPSSO2 Cookie not found in IE

296 Views

Hi Everyone,

I am trying to implement SSO between a third party Java application and the SAP EP 7.0. As a test procedure, I log in to my portal and then run my code to see if I can retrieve and decrypt the MYSAPSSO2 cookie.

My code works perfectly when I log in to the portal using Mozilla Firefox (2.0.0.1); I can see the MYSAPSSO2 cookie and decrypt it (Log file output below). However, when I use IE (6.0.3790.1830) to log in to the portal, I can not retrieve the MYSAPSSO2 cookie. It seems as if this cookie does not even exists. I am thinking the cookie is somehow hidden and therefore my code can't see it.

Has anyone faced this issue before? I have tried to decrease the security settings on IE but that doesn't help things. Any help on this issue would be really appreciated!

Pasted below is a snippet of my code.

//request is a HttpServletRequest object
Cookie[] allCookies = request.getCookies();
			
				int allCookiesLength = allCookies.length;
				for (int i = 0 ; i<allCookiesLength; i++)
				{
					Log.debug("Cookie Name at " + i + " = " + allCookies<i>.getName());
					if(allCookies<i>.getName().compareToIgnoreCase("MYSAPSSO2")==0)
					{
						SAP_SSO_COOKIE =  allCookies<i>;
                                                Log.debug("Cookie Found!");
						cookieFound = true;
						break;
					}
                                        Log.debug("Cookie NOT Found!");
					cookieFound = false;

<u><b>Log file Output with IE</b></u>

2007.02.07 13:05:31 Cookie Name at 1 = saplb_*

2007.02.07 13:05:31 Cookie Name at 2 = JSESSIONID

2007.02.07 13:05:31 Cookie NOT Found!

<u><b>Log file Output with Firefox</b></u>

2007.02.07 13:54:15 Cookie Name at 0 = saplb_*

2007.02.07 13:54:15 Cookie Name at 1 = PortalAlias

2007.02.07 13:54:15 Cookie Name at 2 = JSESSIONID

2007.02.07 13:54:15 Cookie Name at 3 = MYSAPSSO2

2007.02.07 13:54:15 Cookie Found!

Thanks

MOY