• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

HttpOnly, setSecure Cookie not coming from Browser to Servlet.

 
Ranch Hand
Posts: 49
Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,

The 1st request is handled by a servlet where 4 cookies are set and then request is forwarded to a JSP.



The JSP's response header when studied using Development tool's Network tab can be seen to have all the cookies in the response header.
However in Resources tab only the simple and HTTPOnly cookies can be observed and the Javascript code can access only simple cookies.

The JSP form's action is a servlet. This is where my question is.

The request received in the 2nd servlet when queried appears to NOT contain any Secure Cookies and the HTTPOnly cookies also do not
show up as HTTPOnly(ck.isHttpOnly()). WHY is this so?

Regards,
Anirudh.
 
On my planet I'm considered quite beautiful. Thanks to the poetry in this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic