Tutorial: System.flushCookieStore

System.flushCookieStore

Writes any unwritten cookies data to disk.

Example

fin.System.flushCookieStore()
    .then(() => console.log('success'))
    .catch(err => console.error(err));