Working out authenticating on authenticated session problems