InterviewSolution
| 1. |
How Cookies Is Deleted In Jsp? |
|
Answer» There are TWO ways by which the cookies can be DELETED in JSP. Firstly, by setting the setMaxAge() of the cookie CLASS to zero. And secondly by setting a timer in the HEADER file that is response. setHeader(expires {Mention the time} ATTRIBUTE), which will delete the cookies after that prescribed time. There are two ways by which the cookies can be deleted in JSP. Firstly, by setting the setMaxAge() of the cookie class to zero. And secondly by setting a timer in the header file that is response. setHeader(expires {Mention the time} attribute), which will delete the cookies after that prescribed time. |
|