> For the complete documentation index, see [llms.txt](https://docs.iadvize.dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.iadvize.dev/~/changes/39J6v2tWi3Ms7Me1qEFP/technologies/authenticated-messaging/web-client-side-implementation/how-to-logout.md).

# 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();
}) ;
```

&#x20;

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' }}));
});
```
