How does session middleware generally verify browser sessions?

Posted by BBnyc on Programmers See other posts from Programmers or by BBnyc
Published on 2014-06-10T15:25:23Z Indexed on 2014/06/10 15:39 UTC
Read the original article Hit count: 274

I've been using session middleware to build web apps for years: from PHP's built-in session handling layer to node's connect session middleware. However, I've never tried (or needed) to roll my own session handling layer. How would one go about it? What sort of checks are necessary to provide at least some modicum of security against HTTP session highjacking?

I figure setting a cookie with a token to keep track of the session, and then perhaps some check to see that the originating IP address of the session doesn't change and that the client browser software remains consistent. Hoping to hear about current best-practices...

© Programmers or respective owner

Related posts about web-development

Related posts about web-applications