Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Java > Java and JDK > J2EE
|
J2EE General J2EE (Java 2 Enterprise Edition) discussions. Questions not specific to EE will be redirected elsewhere.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the J2EE section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 14th, 2007, 04:38 PM
dee dee is offline
Registered User
 
Join Date: Feb 2007
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default logout back button.

Hello all,
I have a controller

String actionType = RequestUtil.getActionType(req);
if(actionType.equalsIgnoreCase("logout")){
System.out.println("Loging off");
req.getSession().removeAttribute("user");
resp.setDateHeader("Expires", 0);
resp.setHeader("Pragma","no-cache");
resp.setHeader("CACHE-CONTROL","NO-CACHE");
req.getSession().invalidate();
String str = req.getRequestURL().substring(7);
if(str.startsWith("******")) resp.sendRedirect(resp.encodeRedirectURL("http://www.yahoo.com"));

Now I get redirected to yahoo.com but if I click on back button I takes me to my application
can anyone help me in this.






Similar Threads
Thread Thread Starter Forum Replies Last Post
How to stop Back Navigation after Logout ashu_from_india ASP.NET 2.0 Basics 4 April 15th, 2008 12:37 AM
Back Button in IE kishor_ys BOOK: Beginning PHP5, Apache, and MySQL Web Development ISBN: 978-0-7645-7966-0 0 September 4th, 2006 09:05 AM
Back Button DARSIN General .NET 0 March 1st, 2005 08:00 AM
history.back or hitting the back button won't work lian_a Classic ASP Basics 4 July 29th, 2004 12:14 AM
Logout Button - PLEASE Lee8mm VB.NET 0 October 26th, 2003 03:18 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.