Library for user session management