• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Logoff problem

 
Ranch Hand
Posts: 91
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Bartender
Posts: 4121
IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic