title: extend session of Liferay when performing AJAX call
body: <p>I created a portlet that uses AJAX every function.
  That is, the portlet is only rendered once and i didnt utilize processAction or the like.</p>
  
  <p>Is there a way to extend the user's session using built in Liferay function using javascript?</p>
  
  <p>I tried</p>
  
  <pre><code>Liferay.Session.extend();
  </code></pre>
  
  <p>but it does not seem to work..</p>
  
  <p>I also tried a solution in the ICEfaces forum, which is</p>
  
  <pre><code>    if (Liferay.Session._stateCheck) {
             window.clearTimeout(Liferay.Session._stateCheck);
             Liferay.Session._stateCheck = null;
           }
           Liferay.Session.init({
             autoExtend: false,
             timeout: Liferay.Session._timeout,
             timeoutWarning:  Liferay.Session._warning
             });jQuery.ajax({url: Liferay.Session._sessionUrls.extend});
  </code></pre>
  
  <p>also not working..</p>
  
  <p>I put those blocks of code whenever the user clicks a button</p>
  
  <p>Any tip would greatly help..</p>