How can I close the sessions in jsp ?
Posted on 2008-06-16
I'm new to jsp. Our present Intranet is designed in jsp with back-end as Oracle. Previously it is
designed by other employees. My present requirement is " I need to create a login page, if the username
and passwords are correct then we will go to another page which is having logo presenet employee log
status, Garde, Department information on the top header" For this they used "Session.putValue("Name",
VariableName), Session.putValue("Dept",VariableName)...". What I need here is how can i close the
sessions if I click "Log out." At present simple I redirected the page to homepage when I click log out (The
problem here is if I click back button I was able to see the previous page but it is not the correct way).