Added redirect to new session if no session id is provided.