How to access the visitor data exposed as Json by session.js?
<p>I have included this js file in the header of my page to store visitor information:</p>

<p><a href="https://github.com/codejoust/session.js/" rel="nofollow">https://github.com/codejoust/session.js/</a></p>

<p>What I want to do is use it to obtain the visitor information and then set that information in hidden form fields and pass them to the server:</p>

<p>For example, one of the sections of JSON I want to extract looks like this:</p>

<pre><code>"browser": {
    "browser": "Chrome",
    "version": 16,
    "OS": "Mac"
  },
</code></pre>

<p>What I'm confused about is how to access this data.</p>

<p>Initially I was simply including the js file in the <code>head</code> section of my page and accessing elements like <code>window.session.browser.browser</code> and <code>window.session.browser.OS</code> and this worked fine.</p>

<p>But after the original js file was updated, this method no longer worked and an error was displayed in Firebug:</p>

<pre><code>window.session is undefined
</code></pre>
