Invalidating SSL

Hi there;<br /><br />how can access the SSL Session in a jsp or a servlet<br />to be able to invalidate it?<br /><br />Kind regards.

Could you provide a sample code?
LVL 12
jazzIIIloveAsked:
Who is Participating?
 
wdosanjosConnect With a Mentor Commented:
In the JSP page you can do the following:

<%
HttpSession s = request.getSession(false);
if (s != null) s.invalidate();
%>

Open in new window


I hope this helps.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.