Added minimal session management, with session timer.