How do I put a session value into a javascript?
<p>I have a session['password']. I would like to get the session value and use it to validate against user's input. </p>

<pre><code>if(opw != $_session['password']){
      errors[errors.length] = "Sorry, password does not match.";
}
</code></pre>

<p>This is what I have been trying, however if I input this they do not read the session. And ignore this conditions. How do I actually insert session value into Javascript?</p>
