简体   繁体   English

春季安全登录表单重新提交

[英]Spring security login form resubmit

I have implemented spring security prevent concurrent login using session registry implementation every thing working fine. 我已经实现了春季安全性,可以使用会话注册表实现阻止并发登录,并且一切正常。

But the issue is with Browser close. 但是问题在于浏览器关闭。 Since 100% browser close event is not there in javascript and jquery i dont have any option to invalide sessio. 由于JavaScript和jquery中没有100%浏览器关闭事件,因此我没有任何使sessio无效的选项。

Please some one suggest how to invalid session on browser close.Its should not effect page refresh,on submmit,on click,going away from navigatio. 请有人建议如何在浏览器上关闭无效的会话。它不应影响页面刷新,提交,单击,离开导航。

Are you keeping the session through cookies? 您是否通过cookie保持会话? Otherwise, you won't need to invalidate the session when the browser changes, as the new session will have a new id. 否则,当浏览器更改时,您无需使会话无效,因为新会话将具有新的ID。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM