Trigger event after login from cookie.