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
Solved

[JSP] Use of Cookies

Posted on 2007-04-04
6
178 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

How Do You Stack Up Against Your Peers?

With today’s modern enterprise so dependent on digital infrastructures, the impact of major incidents has increased dramatically. Grab the report now to gain insight into how your organization ranks against your peers and learn best-in-class strategies to resolve incidents.

Question has a verified solution.

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

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 …
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

861 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