• 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
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!