This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Adding Cookies with a Portlet

Guy deLyonesse
Ranch Hand
Posts: 200
Eclipse IDE Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey all,

So I'm attempting to store cookies from within a portlet to be read by a separate application (same domain).

Here's the code that creates and adds the cookie:

But the cookie doesn't seem to be making it. I'm watching in the browser (Firefox Page Info) as well as a little portlet I write that displays cookies, attributes, etc. and it's not there. No error messages... just no cookie.

Any thoughts?
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic