Simple session management functions