Removed sessid and duration parameter from endsess

And also removed appid and appsecret