title: How to reload the frame and session value is not getting removed
body: <p>i am using the loginpage which does not come in frame but once i logged in all the pages are in framset and when i try to log out <code>(the logout link is there in the frame)</code> only that specific frame is reloaded and the login page comes to that frame. but i want the login page to be displayed where  no pages should be displayed.</p>
  
  <p>i remove session values like this, but when i refresh the page all the valuse are there in pages which are there in the frame.</p>
  
  <pre><code>public void sessionRemove(HttpServletRequest request,HttpServletResponse response){
          request.getSession(true).removeAttribute("userDetails");
  
          /**
           * Remove the Session Object.
           */
          Enumeration enumSessionObj = request.getSession(false).getAttributeNames();
          while(enumSessionObj.hasMoreElements()){
              String enumObj = enumSessionObj.nextElement().toString();
              request.getSession(false).removeAttribute(enumObj);
          }
  
          /**
           * Remove the Cookies.
           */
          Cookie[] cookies = request.getCookies();
          for (int i = 0; i &lt; cookies.length; i++) {
              Cookie delCookie = cookies[i];
              delCookie.setMaxAge(0);
          }
      }
  </code></pre>
  
  <p>How to do this ,</p>
  
  <p>Please help</p>