Hello dere..
I am trying to create a log-in and log-out page in JSP.
HttpSession started when it get successful log in.While calling session.invalidate() for log out, session did not get destroyed,it retains all the attribute it had..
What should i do?? plz help me

You can set all the attributes back to null yourself:

session.setAttribute("username", null);

But I am sure that you have already thought of that.
As far the invalidate method you can try and check the API.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.