Solved

[JSP] Use of Cookies

Posted on 2007-04-04
6
174 Views
Last Modified: 2010-03-31
Hi,

Since I can store objects in the session,
I can't see what cookies are for ...
And I hear a lot about cookies.

What are they used for in comparison with sessions,
and a concrete example will help !

Thank !!
0
Comment
Question by:matthew016
  • 3
  • 2
6 Comments
 
LVL 86

Assisted Solution

by:CEHJ
CEHJ earned 250 total points
ID: 18853370
Cookies are stored on the client, not the server. Cookies are used to record preferences on the client and also session info
0
 
LVL 86

Assisted Solution

by:CEHJ
CEHJ earned 250 total points
ID: 18853380
0
 
LVL 30

Expert Comment

by:Mayank S
ID: 18861330
Do you mean you want to understand the difference between storing session state in HttpSession and using cookies?
0
DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

 
LVL 9

Author Comment

by:matthew016
ID: 18862699
thankq CEHJ for the link

@mayankeagle:

if i have understand sessions are stored server side and cookies client side.
But I want examples of when to use cookies.
0
 
LVL 30

Accepted Solution

by:
Mayank S earned 250 total points
ID: 19011157
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 19063338
:-)
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
groupSum5 challenge 5 71
what is the difference between "sudo su" and "su - root" 6 106
diffSum example 4 26
hibernate jars 4 4
This was posted to the Netbeans forum a Feb, 2010 and I also sent it to Verisign. Who didn't help much in my struggles to get my application signed. ------------------------- Start The idea here is to target your cell phones with the correct…
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
The viewer will learn how to implement Singleton Design Pattern in Java.

867 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

26 Experts available now in Live!

Get 1:1 Help Now