Solved

Simple question about cookie and Java 1.4

Posted on 2002-07-04
8
175 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
Comment Utility
0
 

Author Comment

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

Expert Comment

by:manshan
Comment Utility
U can use cookies with java servlets.

check the below sites for more info...

www.jguru.com
java.sun.com/servlets
0
 
LVL 92

Expert Comment

by:objects
Comment Utility
manshan,

Thats an original comment.
0
6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

 
LVL 92

Expert Comment

by:objects
Comment Utility
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
Comment Utility
Did you need any more information?
0
 

Author Comment

by:yes4me
Comment Utility
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
Comment Utility
Thanks you.
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Suggested Solutions

After being asked a question last year, I went into one of my moods where I did some research and code just for the fun and learning of it all.  Subsequently, from this journey, I put together this article on "Range Searching Using Visual Basic.NET …
Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
Video by: Michael
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.

772 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now