Failed to get session from cache: `IllegalStateException: Daemon thread is already dead`
kobevaliant opened this issue · comments
kobevaliant commented
Leonid Stashevsky commented
Hi @kobevaliant, thanks for the report.
Could you share the snippet to help reproduce the problem?
Kobe Martin commented
Hi
I used session like following, which is very simple
// session object
data class FfpSession(val userId: String)
//install session
install(Sessions) {
cookie<FfpSession>(
"SESSION_ID",
directorySessionStorage(File(".sessions"), cached = true)
) {
cookie.path = "/"
}
}
//use
val session = sessions.get<FfpSession>()
oleg-larshin commented
Please check the following ticket on YouTrack for follow-ups to this issue. GitHub issues will be closed in the coming weeks.
Leonid Stashevsky commented
Fixed since 1.5.0