Here is what I mean. Main session(SimpleSession) i...
# ktor
б
Here is what I mean. Main session(SimpleSession) is persisted and FlashSession is not.
Copy code
fun Application.sessionModule() {
    install(Sessions) {
        cookie<SimpleSession>(
                "JSESSION_ID",
                directorySessionStorage(File("../../.sessions"))) {
            cookie.path = "/"
        }
        cookie<FlashSession>(
                "FLASH_SESSION_ID") {
            cookie.path = "/"
        }
    }
}