This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Applets and the fly likes sending cookie from applet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Applets
Bookmark "sending cookie from applet" Watch "sending cookie from applet" New topic
Author

sending cookie from applet

pavan in
Ranch Hand

Joined: Oct 22, 2002
Posts: 64
Is it possible to send the cookie from applet back to the server?
If yes, how?
Thanks.
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15961
    
  19

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.


Customer surveys are for companies who didn't pay proper attention to begin with.
pavan in
Ranch Hand

Joined: Oct 22, 2002
Posts: 64
I figured it out.
We can send cookie using HttpURLConnection.setRequestProperty("Cookie", value);
value will be in form 'key=value'...
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: sending cookie from applet
 
Similar Threads
how to get client's date and time in servlet
cookie information
DialogBox is gone after setModal
How to read cookie from applet
Applet session sharing