Add cookie on registerFederated, remove on unregister