get session return status
finish defer, fixed #6
fix travis