title: JMeter: Redirect after post not sending cookies
body: <p>I am attempting to Login to my app with JMeter Script.</p>
  
  <p>I have Cookie Manager and a Cache Manager added</p>
  
  <p>My Thread Group script</p>
  
  <ul>
  <li>GET on main login page (/app) to return session id and form fields
  and cookie</li>
  <li>POST of completed form fields with cookie (/posthandler) with "follow redirects</li>
  </ul>
  
  <p>What happens is </p>
  
  <ul>
  <li>POST sends initial cookie (from GET) and form fields and logs in ok 
  
  <ul>
  <li>the session is established (I see a record in our app database)</li>
  <li>the response is a redirect with a new cookie</li>
  </ul></li>
  <li>JMeter redirects (GET) to the session url (/app?session=xxxxx) 
  
  <ul>
  <li>this goes with "[no cookies]"  (according to request panel)</li>
  </ul></li>
  <li>As that request arrives without the new cookies - the app issues a second redirect back to the login page.</li>
  </ul>
  
  <p>So is there a way to force the GET Redirect after the POST response to send the cookie?  </p>
  
  <p>My theory is that JMeter is that, because of the different URI path for the POST and redirect GET, JMeter is not sending the cookie.</p>
  
  <p>I have tried </p>
  
  <ul>
  <li>various Cookie Manager settings (standard, default, compatibility).</li>
  <li>followed this <a href="https://www.redline13.com/blog/2016/01/jmeter-cookie-manager/" rel="nofollow noreferrer" title="this">Understanding and Using JMeter Cookie Manager</a> and set check.cookies=false. </li>
  <li>and advice <a href="https://stackoverflow.com/a/38711683/1265200">SO - JMeter: Login flow involving URL redirection not working</a> including making sure there was an init</li>
  </ul>