title: Change session variables without reloading page
body: <p>So my webpage has a Link <code>remove Advertisment</code> which should remove the ads from my website and remember to not show any ads in the rest of the session.</p>
  
  <p>My approach at was first was a private static Variable in the controller, which could be set via methods.</p>
  
  <pre><code>private static boolean Ads = true;
  
  public static void closeAds() {
      Logger.debug("Ads removed");
      Ads = false;
  }
  </code></pre>
  
  <p>I did some research and found out that the <code>session()</code> method provided by the play framework probably would be more suitable.</p>
  
  <p>Anyway my problem is, I don't know how to call those controller methods within my html page, since every HTTP request has to have an response and I don't want to reload my page, I only want to set the variable or session variable.</p>
  
  <p>I figured Ajax could be the answer? I couldn`t come up with anything yet</p>