The EndSingleSession function changes the status of a
Session record to Ended. The function has the 0 Before ending session edit point to contain any additional code
to be specified when a Session is ended.
The EndSingleSession
function is called from the WebEndUserSession Event Handler function.