• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Cookie

 
Ranch Hand
Posts: 143
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
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);
kookie.setComment(date);
kookie.setMaxAge(60);
response.addKookie(kookie);
response.sendRedirect(referer);
in my struts action class.
But it does not store it in the kookies folder.


If anyone could advise me on this.

Thanks,
Gayatri
 
Gayatri Ganesh
Ranch Hand
Posts: 143
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have spelled Cookie as Kookie since the browser does not accept it.

So all kookie implies cookie

Thnaks,
Gayatri
 
author and iconoclast
Posts: 24207
46
Mac OS X Eclipse IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Ranch Hand
Posts: 5093
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
where cookies are stored depends on the browser, OS, browser settings, etc. etc. etc.

P.S. All your cookies are belong to us!
 
Opportunity is missed by most people because it is dressed in overalls and looks like work - Edison. Tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic