*
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes cross webapp cookie availablity Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "cross webapp cookie availablity" Watch "cross webapp cookie availablity" New topic
Author

cross webapp cookie availablity

Avinash Ga
Ranch Hand

Joined: Aug 13, 2011
Posts: 78

Hi Ranchers,

I have to share some information between two web apps. for that i am trying to use cookies. I have two web apps (App1 and App2) hosted on the same tomcat server. when user navigate to App1 (http://localhost:8080/App1) i set a session cookie, when user navigates to App2 http://localhost:8080/App2) i want that cookie to do some logic (also i want the Vice-Versa). is this possible using cookies? if yes can you please tell me how to implement? if no, any other mechanism to share session related information across webapps?

Regards,
--
Avinash


Avinash G.A
OCP Java SE 6 Programmer, OCP Java EE 5 Web Component Developer, OCE Java EE 6 Web Services Developer, VMware Certified Core Spring 3.x Developer, EMC Proven Professional (ISM-V2)
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41599
    
  55
Session cookies are specific to individual web apps. But you can set additional cookies for the entire domain, and those will be visible across web apps.


Ping & DNS - my free Android networking tools app
Avinash Ga
Ranch Hand

Joined: Aug 13, 2011
Posts: 78

Ulf Dittmer wrote:Session cookies are specific to individual web apps. But you can set additional cookies for the entire domain, and those will be visible across web apps.


thanks Ulf that was it.....
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: cross webapp cookie availablity