Session Components
This module implements Session Components that can be used to store and access persistent information.
Create a SHA1 Hash of the User’s IP Address and User-Agent
Create a unique session id from the request
Returns a unique session using uuid4() and a sha1() hash of the users IP Address and User Agent in the form of sid/who.
Verify a User’s Session
This verifies the User’s Session by verifying the SHA1 Hash of the User’s IP Address and User-Agent match the provided Session ID.