how to remove cookie from other domain in browser using java
757808May 11 2011 — edited May 12 2011Hi all,
I have facing some issues while implementing global logout in our project. The problem is same user name is replicated after performed logout and login again.
Problem description:
OAM and portal11g application is sitting in different machine. We have 10 different application and all application is integrated with OAM and including portal. All the application can able to access through portal. Application links will available in portal so user want to login into portal and he/she can able to access the respective application. Logout link visible only in portal not in other application.
For Example:
Case 1 : if i logged into portal with user "A" and then access the SOA worklist it will opened in a new window. In SOA worklist showing user "A" as logged . After i closed the SOA worklist window and after click logout link in portal application. It will trigger the jsp page, in the jsp page i have tried to clear the cookies like ObSSOcookie, SSO_ID, JSESSIONID.
Case 2:
Again i logged into portal with different user called "B" in a same session. Again i clicked SOA application and it will opened in a different window. This time i have seen user "A" instead of "B".
I'm able to clear the cookies which is creating under same domain like portal but i'm not able to delete the cookies which is creating under different domain name.
Note : I'm getting expected result if i manually removed the cookies in a browser.
So i need to know is any other way to remove the other domian cookie..
Anyone can help me to resolve this issues.
Regards
Sarath