Session expiration bug fix 2

Made datetime.now a function call.