Link to home
Start Free TrialLog in
Avatar of yes4me
yes4me

asked on

Simple question about cookie and Java 1.4

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.
ASKER CERTIFIED SOLUTION
Avatar of Mick Barry
Mick Barry
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of yes4me
yes4me

ASKER

If I understand corectly, sevlet is the only way for a Java application. What about Java applet?
U can use cookies with java servlets.

check the below sites for more info...

www.jguru.com
java.sun.com/servlets
manshan,

Thats an original comment.
Your applet can get/set cookies values from the http headers.

This site may also help you:

http://www.cookiecentral.com/faq/
Did you need any more information?
Avatar of yes4me

ASKER

Please give me a little more time to invest. I will give you the points as soon as I am done.
Avatar of yes4me

ASKER

Thanks you.