开发者

Session hijacking prevention in ZK

开发者 https://www.devze.com 2023-01-31 15:39 出处:网络
I am extremely new to the web-development scene, but I was wonde开发者_开发问答ring: Does anybody know what mechanisms does the ZK framework use in order to prevent session hijacking? If you use ZK an

I am extremely new to the web-development scene, but I was wonde开发者_开发问答ring: Does anybody know what mechanisms does the ZK framework use in order to prevent session hijacking?


If you use ZK and ZK Spring Security, it will handle this transparently for you.

The mechanism is straightforward. After end user login, a new session is created and all attributes in the old session are copied over to the new one(to keep the state). Then the old session is invalidate and the end user works with the new session since. Because the old session number the "bad guy" had already invalidated, no way for the "bad buy" to hijack the session.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号