documentation of the user-session.js file