Add session id parsing method to session hook.