title: AJAX send post request only once
body: <p>I'm having a problem with ajax, as it sends only once my request, i have a cssmap plugin, and that plugin have the option onSecondClick which gives me the ability to do something when i click on it twice, my post request sends some data, to the sessions.php, in session.php i delete session, and then i put one again. </p>
  
  <p>The js lines :</p>
  
  <pre><code>'onSecondClick' : function(e){
  
          var regionName = e.children("A").eq(0).text(),
          regionHref = e.children("A").eq(0).attr("href"),
          regionClass = e.attr("class").split(" ")[0];
  
          if(regionClass == "eu13" || regionClass == "eu16" || regionClass == "eu47"){
              //open model success
  
              $.ajax({
                  type: "POST",
                  url: 'session',
                  data: { country : regionClass },
                  cache: false,
                  success: function(data){
                      $( "#success" ).click();
                  }
              });
  
              //$( "#success" ).click();
          }else{
              //open model error
              $( "#error" ).click();
          }
      },
  </code></pre>
  
  <p>PS - the url is right, thats the url of the file, and the session is set, but only once and doesn't upadate.</p>
  
  <p>session.php:</p>
  
  <pre><code>if(Input::get('country')){
  
      $countries = array(
          'eu13' =&gt; 'france',
          'eu16' =&gt; 'germany',
          'eu47' =&gt; 'united kingdom',
          //end of playable countries, the rest is bots!
          'eu5' =&gt; 'belgium',
          'eu27' =&gt; 'luxembourg',
          'eu33' =&gt; 'netherlands',
          'eu44' =&gt; 'switzerland',
          'eu20' =&gt; 'ireland'
      );
      if(Session::get('selected');){
          Session::delete('selected');
      }
      Session::put('selected',$countries[Input::get('country')]);
  
  }
  </code></pre>
  
  <p>On the success, i click a button, which open a "model" from Bootstrap.</p>
  
  <p>everything is ok, but the session always return the previous clicked country, and no matter how much i click other country, it doesn't change.</p>
  
  <p>i've got no idea what the problem is, tried e.preventdefault(), cache: false, and some more options, nothing seems to fix it.</p>