title: Keep checkbox checked even after page refresh?
body: <p>I have written a <code>if</code> condition for checking a checkbox:</p>
  
  <pre><code>$('input[type="checkbox"]').click(function() {
      if (this.id == "internships" &amp;&amp; this.checked) {
          window.location.href = "&lt;?php echo Yii::app()-&gt;createAbsoluteUrl('job/internships'); ?&gt;";
      }
      else {
          window.location.href = "&lt;?php echo Yii::app()-&gt;createAbsoluteUrl('job/internships'); ?&gt;";
      }
  });
  </code></pre>
  
  <p>Now I want to make sure that even after page refresh the checkbox does not change its state unless I/user do so. How can I do that?</p>