• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Cookie Problem

 
Angela Poynton
Ranch Hand
Posts: 3143
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm using the following code to check for the exisitance of a cookie, if it doesn't exist a new one is created with the value of a countrychoicecode passed in.
If a cookie already exists I want to modify the countrychoicecode and rewrite the cookie.
The problem is that when I try to modify the cookie and rewrite it the cookie dissappears.
Anyone experienced this before or see where i'm going wrong?
FYI the RequestHelper class used here is used to get hold of a specific cookie from the HttpRequest, this is working fine.

[This message has been edited by Angela Poynton (edited August 21, 2001).]
 
Angela Poynton
Ranch Hand
Posts: 3143
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can anyone help me here? This is getting really frustrating!
 
Tim Holloway
Saloon Keeper
Pie
Posts: 18226
53
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Just as a quick check - are you writing out anything BEFORE you get to this code? Cookies are header constructs.
 
Angela Poynton
Ranch Hand
Posts: 3143
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hmmm you may have it there .... this code is in a Servlet which is called by the FORM ACTION directive in a JSP ... this JSP is included by a template JSP.
Tricky ...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic