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

sending cookie from applet

 
pavan in
Ranch Hand
Posts: 64
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is it possible to send the cookie from applet back to the server?
If yes, how?
Thanks.
 
Tim Holloway
Saloon Keeper
Posts: 18367
56
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm out of practice as far as CREATING cookies in an applet, but the actual transmission of the cookies themselves is automatic when you use HttpURLConnection. In fact, the cookies on the containing page are inherited into the applet. Thids is especially important since one of them is often the one that manages the server session.
 
pavan in
Ranch Hand
Posts: 64
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I figured it out.
We can send cookie using HttpURLConnection.setRequestProperty("Cookie", value);
value will be in form 'key=value'...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic