Yash
01/24/2024, 6:20 PMcall.sessions.set(UserPrincipal(user.id))
Is there a way to update session? Calling sessions.set is regenerating sessionId in the cookie / store which kinda messes up our data logging.Aleksei Tirman [JB]
01/24/2024, 7:31 PMAleksei Tirman [JB]
01/24/2024, 7:41 PMidentity
method of the CookieIdSessionBuilder
or HeaderIdSessionBuilder
. Here is an example:
cookie<SessionData>("session", SessionStorageMemory()) {
identity {
"myID"
}
}
This way, you will control regeneration of the session ID.Manas Marthi
01/25/2024, 2:11 AMAleksei Tirman [JB]
01/25/2024, 7:59 AMSessionStorage
interface.