i have this before and didnt get satisfactory answer... 1. Isnt just the session id is sent to the browser when u use session tracking API? 2. When one uses cookies all the name value pairs are stored on Hard Disk ? If i am right then why should one need cookie after all when everything can be done by Session Tracking API. v -----Original Message----- From: Kevin Mukhar [mailto:[EMAIL PROTECTED]] Sent: Tuesday, September 26, 2000 7:54 PM To: [EMAIL PROTECTED] Subject: Re: Maintaining session (passing cookie!) between Servlet and Applet Source code examples at http://pages.about.com/kmukhar/ Cookie management probably can't be handled by an applet. Look at how the two major browsers handle cookies: the browsers save the persistent cookies to the local hard drive. Unsigned applets are not allowed to write to a local hard drive. Shital Kanitkar wrote: > > I did look up all these trails, and per se, I do know how to use > response.addCookie (not "set-cookie", Sun advises not to use this directly) > , request.getCookies, request.getSession(true), session.getValue("name") > etc. But this is only if I am using HTML as the front-end, not Applets. > > My problem is with the exact sequence of statements. All I know is, to pass > values between Applet and Servlet, you stream serialized objects. So when > you need to pass cookies, how do you set it up at both ends, since cookies > are not serialized objects? How do you pass the cookies back and forth? > > Second question, some cookies are required to be persistent at the clients > end (e.g. to remember the user login and password). Can this be managed > using Applets? If so how? Do you need to use private/public keys and policy > tool? ___________________________________________________________________________ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff SERVLET-INTEREST". Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html ___________________________________________________________________________ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff SERVLET-INTEREST". Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
