added auto-expire feature for sessions.