Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

not able to set Domain for HttpCookie?  RSS feed

sundaresan ganapathy
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
I am not able to set cookie domain in my webapp(

My sample code is given below, my webapp name is, this has got two jsp pages, one for creating cookie and other one is for reading the cookie.




1. I am not able to read the cookie, if i set the domain as cookie.setDomain(""); at cookie. I verified it by commenting the domain setting line.

2. The reason for setting the domain is, I have another web application "" which is supposed to read this cookie which is created in "" application.

3. Is it possible to access the cookie across the applications as the cookie domain and path are been set. (i.e) From to share your inputs

It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!