#17: Add session lifetime setting