I'd like to know if there's a way to programmatically get current window session id (sid). Right now I can only get either main or private session via appropriate API.
Hmm, I see that this is not possible yet. I have added this to the list of enhancement requests. At the moment is is not possible to get the session id of the current window.