my dog learned polymorphism
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
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: 364
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
It's not a secret anymore!