Remove Session Attribute In JSTL

Removing session attributes using Java code goes like this

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

To do the same thing in JSTL, do this

<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

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

Leave a Reply