Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Logoff problem

 
Nilesh Patel
Ranch Hand
Posts: 91
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When i have logout from my jsp page and after press "BACK" button of browser it is display my old page but i want to display login page

So user can't see previous page after logout ....

i have used session and write session.invalidate() for logff.
 
Nathan Pruett
Bartender
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Session really only exists on the server - when you push the "Back" button the web browser pulls the page out of the local cache. You'll need to use something to prevent the page from being cached locally like -
 
Nilesh Patel
Ranch Hand
Posts: 91
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i have tried but it is not working at my locale server but not working on hosting server...

hosting server is tomcat apache and jdk1.3
 
Nathan Pruett
Bartender
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do a "View HTML source" on the page you are getting from your host server and see if the line is included. They may be placing your page into some kind of template or something that has a conflicting directive. Or they may do some kind of caching on their end that doesn't honor this directive, or they may filter things like this out of pages - no caching means higher bandwith usage on the hosting server.
 
Nilesh Patel
Ranch Hand
Posts: 91
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have checked web page source code from my server its including all metatag

likes ..

<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<META HTTP-EQUIV="Cache-Control" CONTENT="no-cache">
<META HTTP-EQUIV="Expires" CONTENT="0">
<META HTTP-EQUIV="Cache-control" CONTENT="no-store">
<META HTTP-EQUIV="Cache-control" CONTENT="max-age=0">

Is some problem on my Hosting Server because its is good on local server?

Below is some parameter of server...

Java classpath : lib/tomcat.jar
Java class version number : 47.0
Java installation directory : /usr/local/jdk1.3.1/jre
Java vendor-specific string : Sun Microsystems Inc.
Java vendor URL : http://java.sun.com/
Java version number : 1.3.1-p7
Line separator :
Operating system architecture : i386
Operating system name : FreeBSD
Path separator (e.g., ":") : :
User's current working directory : /usr/local/tomcat
User home directory: /nonexistent
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic