Prepare for your Next Interview
|
Welcome to the Geeks Talk forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact contact us. |
This is a discussion on Servlets Session Handling within the JSP forums, part of the Web Development category; Hi guys, I have a problem in servlets , Whenever i signout from the homepage of my web application i could get into it again when the back button of ...
|
|||||||
|
|||
|
Hi guys,
I have a problem in servlets , Whenever i signout from the homepage of my web application i could get into it again when the back button of the web broser is clicked so i have programmatically tried to check whether my session is killed by putting another link on the application which redirects to login page once the user signs out. How do I ensure that even the user clicks the back button of web browser he doesnt enter the session but is sent to the login page. hope some one could help me out........... |
| The Following User Says Thank You to rijus For This Useful Post: | ||
| Sponsored Links |
|
|||
|
Re: Servlets Session Handling
Hi,
While signing out, you have to invalidate the session. Before that remove all the cookie information so that it won't take u back to previously visited page. response.setHeader("cache-control", "no-store"); response.setHeader("pragma", "no-cache"); response.setDateHeader("expires","0"); Use the above to remove the cookie information and try. |
![]() |
|
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| servlets | sreejava | Java | 0 | 02-19-2008 02:51 AM |
| Regarding Servlets | samineni6 | JSP | 15 | 11-19-2007 08:41 AM |
| servlets and jsp | chary04 | Java | 1 | 09-09-2007 06:39 AM |
| How to maintain session either in JSP or Servlets. | Geek_Guest | JSP | 1 | 06-15-2007 09:01 AM |
| Help regarding JSP and servlets | neelim | Java | 8 | 05-29-2007 03:49 AM |