title: javax.faces.application.ViewExpiredException with JMeter in JSF Application
body: <p>I am new in JMeter.</p>
  
  <p>I am using JMeter to test scenario in JSF application, the scenario to login the application and open crud page (issue_warning_create.jsf) to create record in database and it is successful with my browser but when I test the scenario with JMeter it fails with this exception:</p>
  
  <blockquote>
    <p>javax.faces.application.ViewExpiredException: viewId:/secure/adt/fin/issue_warning_create.jsf could not be restored.</p>
  </blockquote>
  
  <p>I noticed that JMeter use different session id than session id get from response. I tried to listen logout to terminate session and make new request with new session in JMeter but also give me the same exception. I add http cookie manager and xpath extractor to get view state as in images:</p>
  
  <p><a href="https://i.stack.imgur.com/Xhm1s.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Xhm1s.png" alt="enter image description here"></a></p>
  
  <p><a href="https://i.stack.imgur.com/sU3Hd.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/sU3Hd.png" alt="enter image description here"></a></p>
  
  <p><a href="https://i.stack.imgur.com/0RjEi.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/0RjEi.png" alt="enter image description here"></a></p>