Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Cookie Doubt !!

 
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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic