Chris Searle
07/05/2023, 7:09 AMinstall(Sessions) {
header<UserSession>("user_session", SessionStorageMemory())
}
Once we have a session running and the header is sent in - then I can get the session ID simply from call.sessionId
.
But - I would like to get the ID in the route block where the session gets set the first time:
call.sessions.set(UserSession(....))
// get session ID here
call.sessionId is null at this point (perhaps unsurprisingly - its not on the call at this point).
Is it possible to get the session ID at this point?Aleksei Tirman [JB]
07/05/2023, 8:55 AMChris Searle
07/05/2023, 10:04 AMChris Searle
07/05/2023, 10:05 AMChris Searle
07/05/2023, 11:17 AM