title: Asp.net mvc set session variable in javascript
body: <p>I am trying to set session value in javascript :</p>
  
  <pre><code>//session value 5400
  //remainingSeconds value 5399
  @Session["remain-seconds"] = remainingSeconds;
  </code></pre>
  
  <p>But i am getting the following error: </p>
  
  <blockquote>
    <p>invalid left-hand side in assignment</p>
  </blockquote>
  
  <p>Is it possible to set session variable inside javascript? </p>