You can either write a plugin to expose the session variables, or else turn off php security to allow any php code to be written in the templates. I wrote
a "cookie" plugin, which exposes the cookie information, you could get that one, and replace COOKIE with SESSION, and probably be done.