title: Javascript sessionStorage Across tabs?
body: <p>I am using <code>sessionStorage</code> to ensure an action only happens once per session. However, if a user opens a new window - the <code>sessionStorage</code> is not carried over to the new window, and the action is executed again. See my code below:</p>
  
  <pre><code>if sessionStorage.alreadyTracked != "1"
    sessionStorage.alreadyTracked = "1"
    ...
  </code></pre>
  
  <p>Is there an easy way to do this that applies to all tabs? Maybe I need to use a cookie?</p>