jQuery click event to change php session variable
<p>What would be the best approach to this?</p>

<p>Because, as I found (and it made total sense, only after having tried it :p) that you can't set a PHP variable on javascripts conditions. (duurrhh)</p>

<p>The only solution I can come up with is to do an AJAX call to a small PHP file that handles the session variables</p>

<pre><code>elm.click(function() {
   $.post("session.php", { "hints":"off" });
   turnOffHints();
}
</code></pre>

<p>And then let the <code>session.php</code> deal with setting the new variable.</p>

<p>But it sorta feels like a waste to do a full http request only to set one variable in PHP...</p>
