?
Solved

Simple question about cookie and Java 1.4

Posted on 2002-07-04
8
Medium Priority
?
182 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
8 Comments
 
LVL 92

Accepted Solution

by:
objects earned 200 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
RHCE - Red Hat OpenStack Prep Course

This course will provide in-depth training so that students who currently hold the EX200 & EX210 certifications can sit for the EX310 exam. Students will learn how to deploy & manage a full Red Hat environment with Ceph block storage, & integrate Ceph into other OpenStack service

 
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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.
This video teaches viewers about errors in exception handling.
Suggested Courses
Course of the Month14 days, 8 hours left to enroll

770 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