refactored update_session logic
refactored update_session logic

lagotto/alm-report,mfenner/alm-report,mfenner/alm-report,lagotto/alm-report,lagotto/alm-report,articlemetrics/alm-report,articlemetrics/alm-report,mfenner/alm-report,articlemetrics/alm-report