Updated session cache to include the ability to change the session id.