﻿> These docs cover Nitro Cookies 1.3.0. List APIs, scoped deletion, and normalized errors are available from 1.3.0. Check the installation guide and release history when upgrading from an earlier version.

# Persistence and sessions

These operations have Android-specific effects. Apple implementations preserve compatibility through no-op behavior.
They do not accept a URL or a WebKit-store selector.

## flush

```ts
flush(): Promise<void>
```

On Android, call CookieManager.flush() to persist the current cookies to disk. Resolves with no value. On iOS and tvOS, resolves without work; it does not flush the WebKit store.

## removeSessionCookies

```ts
removeSessionCookies(): Promise<boolean>
```

On Android, remove cookies without a persistent expiration and resolve with the platform removal flag. On iOS and tvOS, perform no removal and resolve false.

[Types](https://l2hyunwoo.github.io/react-native-nitro-cookies/reference/types.md) · [Errors](https://l2hyunwoo.github.io/react-native-nitro-cookies/reference/errors.md) · [Platform support](https://l2hyunwoo.github.io/react-native-nitro-cookies/reference/platforms.md)
