This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Delete cookie code is not working in Opera and Mozilla browsers  RSS feed

 
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!