Implemented persistant user sessions

Need to test this and enhance this to the normal sessions