Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Cookie Doubt !!  RSS feed

 
Sandeep Vaid
Ranch Hand
Posts: 392
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Q-3 When we say ad cookie to response, does it mean that we are actually adding just another header (Set-Cookie)
which is passed to the browser & browser may store this information on clients machine. Right ?
 
Balakrishnan Viswanathan
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

Can someone help on this question ?

Thanks in Advance
 
Bryan Basham
author
Ranch Hand
Posts: 199
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Sandeep Vaid:
Q-3 When we say ad cookie to response, does it mean that we are actually adding just another header (Set-Cookie) which is passed to the browser & browser may store this information on clients machine. Right ?

Yes, Sandeep, your statement is correct. You could encode the "cookie string" by hand and use addHeader() method, but the Cookie API is exists to hide this complex cookie encoding process.

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