• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Caching Problem on log off

 
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I am facing a problem while developing web application,
when user get log off from my application i am removing the user object from the session so every new request now forcing user to provide valid user id/password

but if user click browser back button he is getting back to the previous page i.e secured page
i set the header from the server declared meta header in my jsp page then tested but problem was still there.

then in order to enhance the process i implimented SSL and now my applicationis running on secure port but it dosen't make any improvement in to my application

regarding using javascript i don't want to go for that option as javascript may be turned off at client side and its behaviour is not consistent

if any one have resolved this problem earlier pleaes share his experience with me so that i can move ahead

thanks in advance,
aum
 
Ranch Hand
Posts: 198
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try this-
 
Ranch Hand
Posts: 2458
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The pragma header has only effect on clients using HTTP 1.0.
The expires header has only effect on proxies.

Nowadays we use HTTP 1.1 since ages. For this you need to add a cache-control header as well.
 
Ranch Hand
Posts: 1512
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here is what Bauke was refering to:

<meta http-equiv="Cache-Control" content="no-cache">
 
Marshal
Posts: 67447
173
Mac Mac OS X IntelliJ IDE jQuery Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is all covered in the FAQs.
 
aum sharma
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i tried all the things

even i used SSL for testing it all, but the problem is still there
 
Bauke Scholtz
Ranch Hand
Posts: 2458
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Then you didn't clear the cache at both the server and the client before testing.
 
Oh. Hi guys! Look at this tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic