Solved

Simple question about cookie and Java 1.4

Posted on 2002-07-04
8
179 Views
Last Modified: 2013-11-24
I know how to do it in ASP and Javascript, but I am a complete novice when it comes to Java.

Can you write a program in Java (or Java applet if it is not possible in Java) that would write values, expires, domain, path, secure properties to a few cookies, and read the cookies?

If it is not feasible to have many cookies in Java or Java applet, just show me how to make one and read it.



Thanks in advance.
0
Comment
Question by:yes4me
  • 4
  • 3
8 Comments
 
LVL 92

Accepted Solution

by:
objects earned 50 total points
ID: 7130769
0
 

Author Comment

by:yes4me
ID: 7130993
If I understand corectly, sevlet is the only way for a Java application. What about Java applet?
0
 
LVL 1

Expert Comment

by:manshan
ID: 7130999
U can use cookies with java servlets.

check the below sites for more info...

www.jguru.com
java.sun.com/servlets
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 92

Expert Comment

by:objects
ID: 7131339
manshan,

Thats an original comment.
0
 
LVL 92

Expert Comment

by:objects
ID: 7131348
Your applet can get/set cookies values from the http headers.

This site may also help you:

http://www.cookiecentral.com/faq/
0
 
LVL 92

Expert Comment

by:objects
ID: 7137180
Did you need any more information?
0
 

Author Comment

by:yes4me
ID: 7137184
Please give me a little more time to invest. I will give you the points as soon as I am done.
0
 

Author Comment

by:yes4me
ID: 7142418
Thanks you.
0

Featured Post

Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

By the end of 1980s, object oriented programming using languages like C++, Simula69 and ObjectPascal gained momentum. It looked like programmers finally found the perfect language. C++ successfully combined the object oriented principles of Simula w…
In this post we will learn different types of Android Layout and some basics of an Android App.
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question