This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Servlets and the fly likes More than One Cookie Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Java » Servlets
Bookmark "More than One Cookie" Watch "More than One Cookie" New topic

More than One Cookie

PraveenKumar Kannankutty

Joined: Aug 02, 2005
Posts: 13

Iam using a cookie to store information in an application. My doubt is can I use one more cookie same as what Iam using now.

First of all I want to know is it possible to do so.

Can anyone please clariy me?

William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 13000
As far as the HTTP standard is concerned, rfc2109 is what you need. As far as the Servlet API is concerned, the JavaDocs for javax.servlet.http.C o o k i e give the number of c o o k i e s a browser is expected to handle per web server address.

I agree. Here's the link:
subject: More than One Cookie
It's not a secret anymore!