<% if(session.getAttribute("xname")!= null){ session.invalidate(); response.sendRedirect("index.jsp"); }%>