[英]Logout flow in play! framework 2.0, java
I ran into this problem yesterday and haven't been able to find a solution to it. 昨天我遇到了这个问题,一直没有找到解决方案。
Once a user logs out how do I prevent them from hitting the back button and loading the cached, previous page? 用户注销后,如何防止他们单击“后退”按钮并加载缓存的前一页?
I ran into this post and read the suggested article, but I'm unsure if any of these suggestions are the correct way to handle this problem. 我碰到了这篇文章并阅读了建议的文章,但是我不确定这些建议中的任何一个是否是解决此问题的正确方法。
I even ran the sample apps from Play! 我什至从Play运行示例应用程序! notably the Forms app and it has the same problem. 特别是Forms应用程序,它也有相同的问题。 I thought their apps would at least show how to handle this. 我认为他们的应用程序至少会显示如何处理此问题。
Any help would be appreciated. 任何帮助,将不胜感激。 Thanks. 谢谢。
您可以为每个需要检查凭据的页面在响应的标头中禁用缓存(无缓存或必须重新验证)。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.