Solved

[JSP] Use of Cookies

Posted on 2007-04-04
6
177 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
Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

 
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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
jar file executable 12 52
How to increase Spring boot/Tomcat max file upload size 2 69
object oriented programming comparison 5 71
arguments to jar 5 26
Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…
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.

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