Implement very basic session tracking.