• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

cross webapp cookie availablity

 
Avinash Ga
Ranch Hand
Posts: 78
Eclipse IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Avinash Ga
Ranch Hand
Posts: 78
Eclipse IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.....
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic