954,604 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Sessions in JSP

Hi i am new to JSP. I am setting a boolean value for session attribute in the java class. Now i am getting the same in the jsp using session.getAttribute("session attribute") method. Now i want to remove the session value in jsp. How could i achieve this??? Plz Help..

Narayanan87
Newbie Poster
6 posts since Dec 2008
Reputation Points: 10
Solved Threads: 0
 

By setting it to null.

javaAddict
Nearly a Senior Poster
Team Colleague
3,329 posts since Dec 2007
Reputation Points: 1,014
Solved Threads: 448
 

Thanks java addict!!!

Narayanan87
Newbie Poster
6 posts since Dec 2008
Reputation Points: 10
Solved Threads: 0
 

you can also Use this session.RemoveAttribute(sessionname);

Mindpowerh
Newbie Poster
4 posts since Mar 2011
Reputation Points: 10
Solved Threads: 1
 

pls give me one example for creating the session and how to remove session

laxmipriya22
Newbie Poster
1 post since Jan 2012
Reputation Points: 10
Solved Threads: 0
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: