I am in the process of writing a class to put on top of this one for managing user sessions implementing Charles Miller's solutionCharles Miller's solution.
replaced http://codereview.stackexchange.com/ with https://codereview.stackexchange.com/