|
|
How to Delete Cookie in JSP page - JSP/Java
|
Views : 376
|
|
Tagged in : JSP-Java
|
|
|
Report This Scrap as Inappropriate We request you to choose the appropriate categroy and subcategory that suits your
objectionable concern about the scrap, So that our team can review and find out whether it violates our Guidelines or the
scrap is not suitable for all viewers.
|
We can delete the cookie by using the below code
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%
Cookie cookie = new Cookie( "id", "" );
cookie.setMaxAge( 0 );
response.addCookie(cookie);//Cookie deleted or removed
%>
|
|
By Vinoth, On - 2010-01-28 |
|
|
|