does the session.getUserId() function get the user...
# support-questions-legacy
t
does the session.getUserId() function get the user id from the cookie, or does it make a DB call?
r
The
session.getUserId()
function gets the user ID from the session object, which is stored in memory or cache. The session object is formed based on the access token's payload. It does not make a DB call.
t
Thank you!
2 Views