add model logic for user session
Merge branch 'master' of https://github.com/dyg2104/newstips