To get this identifier, enter the following command:
xprop -root | grep TT_SESSION
An X session is a session that advertises its session id on the TT_SESSION property of root window.
TT_SESSION