当前位置 : 主页 > 网络编程 > 其它编程 >

sessionfixationattack修复方法

来源:互联网 收集:自由互联 发布时间:2023-07-02
Springboot集成Securityredis进行分布式会话报错Yourservletcontainerdidnotchangethesess Springboot集成Securityredis进行分布式会话报错 Your servlet container did not change the session ID when a new session was created. You
Springboot集成Securityredis进行分布式会话报错Yourservletcontainerdidnotchangethesess

Springboot集成Securityredis进行分布式会话报错

Your servlet container did not change the session ID when a new session was created. You will not be adequately protected against session-fixation attacks

解决办法

HttpSession htsession request.getSession();

htsession.invalidate();

HttpSession newsession request.getSession(true);

security.sessionManagement().sessionFixation().none();

亲测有效。

【本文由:武汉网站建设 http://www.1234xp.com/wuhan.html 网络转载请说明出处】
网友评论