use accessor to get session
Merge pull request #66 from owncloud/kill_oc_session

use accessor to get session