I have a JSP page with login functionality.When i enter the login credentials and click on login i can login into the application, then i am not logging out from the application, i am just typing the application url in the browser again the login screen appears.But when i enter with other users credentials its going into the previous user's login.

Is there any way in JSP to reset the previous credentials when i login with another user id and password.

I am using JSP,servlet,struts