title: gatling - extract cookie value string during test
body: <p>My tests run fine but now I need multiple sessions running at once.  I've tried getting the cookie value using <code>headerRegex("Set-Cookie", "HOME_SESSID=(.*)").saveAs("homeSessid")</code> but when I print this out its returning a value of <code>com.excilys.ebi.gatling.http.check.HttpMultipleCheckBuilder@6075598</code></p>
  
  <p>I have no idea where this is coming from.  My question is: what is going on?</p>
  
  <p>Thanks.</p>
  
  <p>edit:  forgot to mention that the value its returning is not a session id and no matter what I use for the cookie name I get the same value.</p>
  
  <p>edit (solution):</p>
  
  <p>1) In the first .exec: <code>.check( headerRegex("Set-Cookie", """HOME_SESSID=(.*dll/(\d+))""").saveAs("homeSessid") )</code></p>
  
  <p>2)  Then to retrieve <code>homeSessid</code> in later http requests I did, for example: 
  <code>.post( session=&gt;{session}.getAttribute("homeSessid").toString + "/some/relative/url" )</code></p>