Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Is it possible to set and retrieve cookies from Java, in a manner that is compatible with all browsers supporting cookies?

0
Posted

Is it possible to set and retrieve cookies from Java, in a manner that is compatible with all browsers supporting cookies?

0

• A. Short answer: no. Longer answer: probably no. Ultimate answer: A cookie is a morsel of tasty data that a server sends back to the client, and can retrieve on demand. It allows the server to retain some state information for each of its clients. The information is typically something like “what pages has the user seen?” or “is this a privileged user?”. The DevEdge site on Netscape’s home page has a javascript-java example on getting cookies. Also http://www.geocities.com/SiliconValley/Vista/1337 has info on connecting an applet with JavaScript functions. It’s quite involved. Stick to just Java if you can.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123