fix session expirey and clear old expired sessions