Geeks Talk

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.

Servlets Session Handling

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 ...

Go Back   Geeks Talk > Web Development > JSP
Register Blogs FAQ Tag Cloud Calendar Mark Forums Read

JSP JSP Related Issues and Problems

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-17-2009
Expert Member
 
Join Date: May 2009
Location: Bangalore
Posts: 989
Thanks: 155
Thanked 420 Times in 201 Posts
rijus is just really nicerijus is just really nicerijus is just really nicerijus is just really nicerijus is just really nice
Smile Servlets Session Handling

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...........
Reply With Quote
The Following User Says Thank You to rijus For This Useful Post:
Sponsored Links
  #2 (permalink)  
Old 07-17-2009
Junior Member
 
Join Date: Jul 2009
Posts: 4
Thanks: 0
Thanked 1 Time in 1 Post
ShruthiL is on a distinguished road
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.
Reply With Quote
Reply

  Geeks Talk > Web Development > JSP

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


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


All times are GMT -4. The time now is 04:35 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.3.1
Copyright © 2009 GeekInterview.com. All Rights Reserved