Bring client user agent and ip when building the session id. Deep refactoring