• Post Reply Bookmark Topic Watch Topic
  • New Topic

Caching Problem on log off

 
aum sharma
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
 
Vinod K Singh
Ranch Hand
Posts: 198
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try this-
 
Bauke Scholtz
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.
 
Bosun Bello
Ranch Hand
Posts: 1511
  • 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">
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65522
105
IntelliJ IDE Java jQuery Mac Mac OS X
  • 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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!