This week's book giveaway is in the Android forum.
We're giving away four copies of Head First Android and have Dawn & David Griffiths on-line!
See this thread for details.
The moose likes Servlets and the fly likes Cookie Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Cookie" Watch "Cookie" New topic


Gayatri Ganesh
Ranch Hand

Joined: Dec 23, 2003
Posts: 143
I am using javax.servlet.http.Kookie.
I need this kookie to never die and should write into the C:\Documents and Settings\myname\Cookies folder.

I do the following :

String Id = request.getParameter("id");
Kookie kookie = new Kookie("wishlist",Id);
in my struts action class.
But it does not store it in the kookies folder.

If anyone could advise me on this.

Gayatri Ganesh
Ranch Hand

Joined: Dec 23, 2003
Posts: 143
I have spelled Cookie as Kookie since the browser does not accept it.

So all kookie implies cookie

Ernest Friedman-Hill
author and iconoclast

Joined: Jul 08, 2003
Posts: 24189

Please don't post the same question to multiple forums -- it just wastes people's time, especially if none of those forums are the correct one! This is a servlet API question, so I'm moving this to our servlets forum for followup -- and I've deleted all the other copies you posted.

[Jess in Action][AskingGoodQuestions]
Jeroen Wenting
Ranch Hand

Joined: Oct 12, 2000
Posts: 5093
where cookies are stored depends on the browser, OS, browser settings, etc. etc. etc.

P.S. All your cookies are belong to us!

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