Trying to use metadata is a generic way, so will be more easy to use.
Delete login cookie.