Remove Session Attribute In JSTL

1 Star2 Stars3 Stars4 Stars5 Stars (3 votes, average: 5.00 out of 5)
Loading ... Loading ...

Removing session attributes using Java code goes like this

1
request.getSession().removeAttribute("my_var");

To do the same thing in JSTL, do this

1
<c:remove var="my_var" scope="session"/>
Bookmark and Share

Found this post useful? Buy me a cup of coffee or help support the sponsors on the right.

Related Posts with Thumbnails

Leave a Reply