modify session control
Merge pull request #22 from COSI236TA/session_bug

modify session control