# Logout Offline Xamarin / Maui

**URL:** <https://community.auth0.com/t/logout-offline-xamarin-maui/92468>\
**Category:** Get Help\
**Tags:** dotnet-maui, xamarin-forms, logout\
**Created:** [October 15, 2022, 4:27pm UTC](https://community.auth0.com/t/logout-offline-xamarin-maui/92468 "2022-10-15T16:27:24Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![AJ\_Duck](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/aj_duck/32/13075_2.png) [@AJ\_Duck](https://community.auth0.com/u/AJ_Duck)\
**Post date:** [October 15, 2022, 4:27pm UTC](https://community.auth0.com/t/logout-offline-xamarin-maui/92468/1 "2022-10-15T16:27:24Z")

</div>

Hi,

I have been trying to create an app which I started in Xamarin but have now started using Maui and both times, I’ve hit the same issue that I can’t seem to get my head around.

I have followed this to set up the application. [Add Authentication to .NET MAUI Apps with Auth0](https://auth0.com/blog/add-authentication-to-dotnet-maui-apps-with-auth0/)

While I am requiring the user to log in while connected to the internet user may want to log off while not connected to the internet, but I can’t work it out.

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [October 27, 2022, 6:23pm UTC](https://community.auth0.com/t/logout-offline-xamarin-maui/92468/3 "2022-10-27T18:23:44Z")

</div>

Hi @AJ_Duck,

Welcome to the Auth0 Community!

Logging off while not connected to the internet will prevent the Auth0 Session from being terminated. All you can do is terminate the app session, i.e. remove cookies, tokens, etc.

Does that help clarify things?

Here’s more info on the layers:

> **[Logout](https://auth0.com/docs/authenticate/login/logout)**
>
> Describes how logout works with Auth0.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [November 28, 2022, 8:53pm UTC](https://community.auth0.com/t/logout-offline-xamarin-maui/92468/4 "2022-11-28T20:53:56Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
