Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在我的 WAR 中使用基于表单的身份验证。我想实现一个“记住我”cookie,所以:1)如何在用户被重定向到表单之前拦截身份验证?2)说我检查了cookie并且它很好,我如何实际登录用户?
最好的方法是使用Filtercookie 检查 cookie 并使用您的登录系统记录用户。
Filter