support auto get session from input fix #211