added UDF to generate session id

UDF for assigning session ids"
Merge remote-tracking branch 'origin/master'