Getting session Id in twig template
Old post, I know, but we've recently published a plugin to achieve this for a similar problem we were facing.

SessionExposer plugin can help you achieve this. To get the Session ID in the template you use

{{ craft.sessionExposer.sessionId }}