What would be the best approach to this?
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)
The only solution I can come up with is to do an AJAX call to a small PHP file that handles the session variables
elm.click(function() {
$.post("session.php", { "hints":"off" });
turnOffHints();
}
And then let the session.php
deal with setting the new variable.
But it sorta feels like a waste to do a full http request only to set one variable in PHP...