add session api
session api
Merge pull request #8 from konpyu/session-api

add session api