Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Session does not work

988497Feb 1 2013 — edited Feb 6 2013
Previous page can be seen even after user logs out from the JSP page.
My code is:

Logout.jsp:

<%@page contentType="text/html" pageEncoding="UTF-8"%>

<html>
<head>

<title>JSP Page</title>

</head>
<body>

<%

session.removeAttribute("username");
session.removeAttribute("password");
session.invalidate();
%>
<% response.setHeader("Cache-Control","no-cache");%>
<h1>Logout was done successfully.</h1>

</body>

</html>



how to resolve this?

Comments

Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Mar 6 2013
Added on Feb 1 2013
2 comments
1,624 views