How I get the session id in a get() {}, I just se...
# ktor
l
How I get the session id in a get() {}, I just see examples of doing
Copy code
call.sessions.get<MySession>()
but why isn't there call.sessions.getId or something?
b
The Session feature doesn't have any predefined structure. If you want a session-id, then you could yourself a Session data class which has a session-id attribute, but its more likely you'd build a Session class with the attributes your session uses, and then store in either server-side, via one of the storages, or as a secure, encypted cookie client side