As per your previous support I crete an project, while user login the page they get check.jsp, after click on link they able to view the excelsheet but at a same time they logout from the login page. please suggest
For this, you need to store the login details into session.
Store the username in to session inside check.jsp like this:
And create a logout option somewhere in your check.jsp page:
<html> <head> </head> <body> <% session.invalidate(); response.sendRedirect("login.jsp"); %> </body> </html>