IE 7 and IE8 not applying cookies correctly in all the environments
===

I am facing an issue with IE7 and IE8. The web appliction I am developing on is deployed on Weblogic 10.3. It uses wicket 4.18. Now on IE7/8, when I open the browser and login on domain (e.g. jam.comp.com mapped to 127.0.0.1) I am able to successfully reach to the home page. Now if I open up another tab in same IE window and try to login to subdomain (e.g. subdomain.jam.comp.com mapped to 127.0.0.1) I am pushed back to the login page. There is only occurring in IE 7 and 8 and working fine in firefox and chrome.

Now in the weblogic.xml I have this:

    <?xml version="1.0" encoding="ISO-8859-1"?>
    <!DOCTYPE weblogic-web-app PUBLIC "-//BEA Systems, Inc.//DTD Web Application       9.1.0//EN" "http://www.bea.co`enter code here`m/servers/wls910/dtd/weblogic-web-jar.dtd">
    <weblogic-web-app>
	<!-- WebLogic session descriptors -->
	<session-descriptor>
		<session-param>
			<param-name>CookieName</param-name>
			<param-value>MYCookie</param-value>
		</session-param>
		<session-param>
			<param-name>PersistentStoreCookieName</param-name>
			<param-value>MYCookie</param-value>
		</session-param>
		<session-param>
			<param-name>PersistentStoreType</param-name>
			<param-value>memory</param-value>
		</session-param>
		<session-param>
			<param-name>CookiesEnabled</param-name>
			<param-value>true</param-value>
		</session-param>
		<url-rewriting-enabled>false</url-rewriting-enabled>
		<encode-session-id-in-query-params>false</encode-session-id-in-query-params>
	</session-descriptor>
</weblogic-web-app>
    
If I open the subdomain (subdomain.jam.comp.com) in a new IE window with domain already open in another IE window, this issue does not occur and I am able to login through subdomain.

This seems to be an issue due to browser session cookie. If while login, for all the cookies whose name contains "ookie", I set - setMaxAge(0), setPath("/"), doamin this issue seems to resolved on local machine, but it happens on real deployment environment. Not sure if this sii\ the right approach to this issue.

Please share how can this issue be resolved.
  
Thanks in advance 


I have two domains (primary and secondary) mapped to 127.0.0.1 in the hosts file. I have web application deployed on weblogic.

127.0.0.1 mysystem.comp.com

127.0.0.1 sub.mysystem.comp.com

Now I open up IE8 and go to primary domain i.e. http://mysystem.comp.com:7001/ and login successfuly. The session cookie I see in the response is

WLCookie=nYXNQQXRZp7dQdGXLy1dhylQZbtPdJFTjp9f81s5926PQyG04nPb!1416791498

Now I open another tab in the same browser window of IE8 and try to navigate to subdomain. Now the subdomain also has the cookie from primary domain. Though I try to clear it by setMaxAge(0), setPath("/"), setdomain, however this cookie does not clean out which causes the weblogic to return me to the Login page on the second page for subdomain.

This does not happen if instead of a tab I open up a new browser window. 

This issue does not occur on firefox, chrome. Please provide a solution to this issue

