title: Meta refresh on session.maxInactiveInterval and AJAX don't get along
body: <p>I have JSF web page using PrimeFaces 5.1 and I want to redirect redirect to some xhtml page once session is expired.</p>
  
  <p>I have set session timeout to 1 minute (for testing it will be set to 30 after that) in web.xml</p>
  
  <pre><code>&lt;session-config&gt;
      &lt;session-timeout&gt;1&lt;/session-timeout&gt;
  &lt;/session-config&gt;
  </code></pre>
  
  <p>And i have added </p>
  
  <pre><code>&lt;meta http-equiv="refresh" content="#{session.maxInactiveInterval};url=#{request.contextPath}/season_expired.xhtml"/&gt;
  </code></pre>
  
  <p>to <code>&lt;h:head&gt;</code> of the default template which is used on every page of the application.</p>
  
  <p>Everything works fine for the most of the time (when I move between pages etc..) except when I'm using using some form where every refresh is made by AJAX. Then i get redirected after one minute.</p>
  
  <p>Is there a way to "refresh" session with AJAX?</p>