Does ktor clear out cookies that can not be deserialized? Suppose there was a schema change.
a
Aleksei Tirman [JB]
10/03/2025, 5:23 AM
Can you describe the problem in more detail? Is your question about the client or the server? Do you have a specific Ktor plugin in mind?
e
Emre
10/03/2025, 2:21 PM
The server. I am asking how to deal with schema evolution by invalidating obsolete cookies. My cookie class has a serializer which can detect validity, but what then? If it throws an exception, does ktor clear it out?
a
Aleksei Tirman [JB]
10/10/2025, 6:51 AM
No, Ktor doesn't remove session values that cannot be deserialized.