摘要: Spring Security 的会话管理可控制用户身份验证的会话行为,支持并发会话限制、防止会话固定攻击(Session Fixation)、会话超时控制等。可结合 Redis 实现分布式会话共享,提升安全性与用户体验,适用于高并发应用场景。 阅读全文
posted @ 2025-03-19 10:19 爱编程的小生 阅读(152) 评论(0) 推荐(0)
摘要: Spring Security的“记住我”功能允许用户在登录后保持会话状态,即使浏览器关闭也能自动登录。通过在客户端存储一个加密的cookie,Spring Security可以在用户返回时验证身份,避免重复登录。这项功能适用于需要长时间保持登录状态的应用,增强了用户体验。 阅读全文
posted @ 2025-03-19 10:18 爱编程的小生 阅读(127) 评论(0) 推荐(0)
$(document).ready(function() { // 禁止右键 $(document).bind("contextmenu", function(){return false;}); // 禁止选择 $(document).bind("selectstart", function(){return false;}); // 禁止Ctrl+C 和Ctrl+A $(document).keydown(function(event) { if ((event.ctrlKey&&event.which==67) || (event.ctrlKey&&event.which==86)) { //alert("对不起,版权所有,禁止复制"); return false; } }); });