• Post Reply Bookmark Topic Watch Topic
  • New Topic

Delete cookie code is not working in Opera and Mozilla browsers

 
srinivasa v reddy
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
I have written the following code for deleting cookie

Cookie c = new Cookie("name", null);
c.setMaxAge(0);
c.setPath(request.getContextPath());
response.addCookie(c);
response.sendRedirect("/page.jsp");

The above code is deleting cookie frome IE and Netscape.
But the problem is the cookie is not deleting from Opera and Mozilla browsers.

Can anyone please help me why it is not working......
thanks
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!