refactor SessionSetting,move object responsibility
inlined private getter in session setting