title: Session lost window.location.href
body: <p>I'm trying to redirect the user to another page width:</p>
  
  <pre><code>window.location.href = "url here" //relative link
  </code></pre>
  
  <p>but when I do, it clears my <code>sessvars.keyPageArray</code> variable. Anyone know how to keep a session variable after a redirect?</p>
  
  <p>This is the sessvars library that I am using:
  <a href="http://www.thomasfrank.se/sessionvars.html" rel="nofollow">http://www.thomasfrank.se/sessionvars.html</a></p>
  
  <p>UPDATE: I used google chrome debugger and my script actually does work. For some crazy reason it only works if I'm monitoring it variable by variable but not when I simply run it normally without the debugger on? Why is that happening?</p>