用户登录后阻止显示登录屏幕 [英] Prevent showing Login screen after user login

查看:132
本文介绍了用户登录后阻止显示登录屏幕的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Web Apllication在浏览器中单击后退按钮后显示登录屏幕。

Web Apllication shows login screen after logged in when i click back button in browser.

我正在使用spring框架。有什么解决方案吗?

I am using spring framework. Is there any Solution for this?

推荐答案

我不建议使用自我实现的身份验证工具,除非有充分的理由不使用现有的库(非常罕见的情况,根据我的经验)。您可能想要查看spring-security,这个项目可以提供您在保护Web应用程序方面可能需要的所有内容。您肯定可以使用此库实现此行为。虽然,如果我记得,它在Mozilla Firefox中无法正常工作。我想Mozilla只是从缓存中读取webapp,在这种情况下甚至不与服务器通信。但我可能在这里错了。

I don't recommend using self-implemented authentication tools unless there is a strong reason not to use existing libraries (very rare case, based on my experience).You might want to check out spring-security, a project which could deliver pretty much everything you might need in terms of securing your web application. You definitely can achieve this behavior using this library. Although, it didn't work properly in Mozilla Firefox, if I recall. I guess Mozilla just reads the webapp from cache and doesn't even communicate to the server in such cases. But I might be wrong here.

这篇关于用户登录后阻止显示登录屏幕的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆