Handle new cookie based authentication