Question

I am extremely new to the web-development scene, but I was wondering: Does anybody know what mechanisms does the ZK framework use in order to prevent session hijacking?

Was it helpful?

Solution

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top