i m working on jsp.my project is ready to implement but in that session is not working.i put code here:

<%response.setHeader("Cache-control","no-cache");response.setHeader("Cache-control","no-store");

response.setHeader("pragma","no-cache");response.setDateHeader("Expires", 0);

if(session.getAttribute("un") ==null)
response.sendRedirect("index.jsp");%>

 

its not working.please help me on and answer me..thanks