Get session id from the right place