Almost completed implementing the session lifetime feature.