https://kotlinlang.org logo
#ktor
Title
# ktor
a

Arun Joseph

03/11/2023, 7:51 PM
I am a newcomer to ktor, I use the following for cookie management at client side,
Copy code
private val cookieStorage: CookiesStorage = AcceptAllCookiesStorage()
    private val client = HttpClient(engine) {
        expectSuccess = true
        install(ContentNegotiation) {
            json(
                Json {
                    ignoreUnknownKeys = true
                    prettyPrint = true
                }
            )
        }
        install(HttpCookies) {
            cookieStorage
        }
    }
How can I manually clear the cookie stored by HttpCookies?
a

Aleksei Tirman [JB]

03/13/2023, 11:43 AM
Unfortunately, you can’t.
14 Views