Solved

[JSP] Use of Cookies

Posted on 2007-04-04
6
173 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:mayankeagle
ID: 18861330
Do you mean you want to understand the difference between storing session state in HttpSession and using cookies?
0
Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 
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:
mayankeagle earned 250 total points
ID: 19011157
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 19063338
:-)
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

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.
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:

743 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

11 Experts available now in Live!

Get 1:1 Help Now