实现用户登录后SESSION传递用户数据的过程
add custom controller MainController to process user's login status.
Merge branch 'master' of https://github.com/hilerchyn/caizi