Hi everybody, I have a problem with my application. In my application I have a login page, if the user is already logged in and requests for login page, he will be automatically redirected to home.jsp. If he is not logged in he will must get authenticated.
Now after the user logins from the browser, if he opens another window and tries to login from that one the, login page is recognizing the user as already logged in, the problem is arising if the user closes the browser and again wants to login. If the user closes the browser and opens a new browser then if he request for the login page he is not redirected to home page, he is asked to get authenticated. Why is this happening? Anybody please help me.
This is the code:
login.jsp
web.xml
Login.java
main.jsp
error.jsp
Please help me. Thank you all in advance.
Now after the user logins from the browser, if he opens another window and tries to login from that one the, login page is recognizing the user as already logged in, the problem is arising if the user closes the browser and again wants to login. If the user closes the browser and opens a new browser then if he request for the login page he is not redirected to home page, he is asked to get authenticated. Why is this happening? Anybody please help me.
This is the code:
login.jsp
web.xml
Login.java
main.jsp
error.jsp
Please help me. Thank you all in advance.