dongzi3805 2012-03-01 13:16
浏览 26

当我点击后退按钮时,我可以看到我上次受保护的页面

In my web site I destroy session but after logout if users press back on browser they can see last page.

How can I solve this ? I tried javascript but didn't work. I tried unset or destroy session but that doesn't work too. What I can do ?

I use these codes at header.

Header('Cache-Control: no-cache');
Header('Pragma: no-cache');

How can I solve this. Thanks for your help.

  • 写回答

3条回答 默认 最新

  • dptt66700 2012-03-01 13:19
    关注

    You can't. The page was sent to the client, it's up to the client to decide what to do with it.

    What's the difference between this behaviour and a user with a photographic memory?

    The real question is: why would you want to do this?

    评论

报告相同问题?