File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes cookies and storing data Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "cookies and storing data" Watch "cookies and storing data" New topic

cookies and storing data

Medha kamat

Joined: Aug 22, 2002
Posts: 21
i want to persist some data between sessions.I thaught i will use cookies but may be it's not a good idea to store such data (actually it's a java object that i want to persist)with cookies.
So what is a better way of storing such data?
All suggestions welcome!
Scott Duncan
Ranch Hand

Joined: Nov 01, 2002
Posts: 363
A database or you can serialize the object to a file on the server.

No more rhymes! I mean it!<br /> <br />Does anybody want a peanut?
I agree. Here's the link:
subject: cookies and storing data
Similar Threads
Best way
Can't validate session
Implementing previous searches
Storing objects in cookies
Persisting shopping cart values.