Improved session for authentication