# DeleteCookies() does not work on Android

**URL:** <https://forums.unrealengine.com/t/deletecookies-does-not-work-on-android/486936>\
**Category:** Community & Industry Discussion\
**Tags:** delete, webbrowser, unreal-engine, Android, question\
**Created:** [August 2, 2021, 8:04am UTC](https://forums.unrealengine.com/t/deletecookies-does-not-work-on-android/486936 "2021-08-02T08:04:34Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![DON\_T\_PANIC](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DON\_T\_PANIC](https://forums.unrealengine.com/u/DON_T_PANIC)\
**Post date:** [August 2, 2021, 8:04am UTC](https://forums.unrealengine.com/t/deletecookies-does-not-work-on-android/486936/1 "2021-08-02T08:04:34Z")

</div>

Hello together,

I am recently implementing an authentification process for Windows and Android using the SWebBrwoser. I got the authentication itself to work, but now I want to implement a function so that the user can end the session. My initial thought was to just delete the cookies from the SWebBrowser widget using the IWebBrowserCookieManager::DeleteCookies() function. And it works like a charm…on windows.  
On Android it does nothing. Here is the code I am using:

```
IWebBrowserSingleton* WebBrowserSingleton = IWebBrowserModule::Get().GetSingleton();
if(WebBrowserSingleton)
{
    TSharedPtr<IWebBrowserCookieManager> CookieManager = WebBrowserSingleton->GetCookieManager();
    if(CookieManager.IsValide())
    {
        TFunction<void(int)> CookieDeletedCallback = ([&](int count) {
            UE_LOG(LogTemp, Display, TEXT("%d cookies deleted."), count);
        });
        CookieManager->DeleteCookies("","", CookieDeletedCallback);
    }
}

```

On windows the callback prints out "5 cookies deleted. The very same code with the very same process beforehand the callback prints out “0 cookies deleted”.

Has anybody an idea what I am doing wrong. Maybe something with the android permissions?
