Is it possible to enable the hash of the client ip address in the session id to exclude the session identifier being used from another host? Does this approach make sense?
This may block session capture in a situation, but in a situation where the attacker computer and the victim computer are on the same network, it will not do anything, since the connection is from the same IP address.
What are the possible server side countermeasures?
Using SSL will help prevent session hijacking if a person is connected to a public network.
You can view your code and make sure that the code is missing XSS .
You can also verify that the cookie used to store the session has the HTTP Only flag.
source share