News for hackers. Stuff that matters.
Re:Ask HN: Best Approaches to Prevent Session Hijacking? by dstein on Thursday June 16, 2011 @11:56PM (#2664263)
One trick I read while writing some session code is to generate a session fingerprint using a salted md5 of the IP address + the User-Agent. That adds one extra level of protection in case your session storage (but not your webserver) is comprimised. If an attacker can spoof IP's, and knows the user-agents, then there is no safety except SSL. A post-modern alternative would be to open a websocket and do all communication through it.

See http://stackoverflow.com/questions/616545/php-sessions-usera...

There are no comments on this comment yet.