How to logout?

When the visitor actively logouts from your website or their website session expires, you must also log them out of iAdvize. To do so, you can simply use logout like so:


iAdvizeInterface.push(async (iAdvize) => {
        await iAdvize.logout();
}) ;

The visitor won’t be able to start a new conversation until a new activation is performed. This is how you would log out then start the targeting engine, that could lead to a new conversation:

iAdvizeInterface.push(async (iAdvize) => {
        await iAdvize.logout();
        await iAdvize.activate(() => ({ authenticationOption: { type: 'ANONYMOUS' }}));
});

Last updated

#147: HFE - Authenticated Messaging

Change request updated