change session commit method to return a transcation id for a known user.

Hi Shaun,

As per our discussion, this change is required for the fix of dsc-543.  I've updated the session commit method to return an transaction id for a know user and reason.  Could you please review and merge this change if you're happy with it?

Thanks

Shuang