ToolTalk User's Guide

Where is the session id of the X-session?

To get this identifier, enter the following command:

xprop -root | grep TT_SESSION


Note -

An X session is a session that advertises its session id on the TT_SESSION property of root window.