title: rails app load testing with jmeter
body: <p>I am trying to load test a rails app with jmeter but have not gotten pass login. </p>
  
  <p>In application_controller I commented out protect_from_forgery so as not to have to use the authenticity_token.</p>
  
  <p>It now looks like the app session id cookie from idex/home page response is not getting saved by jmeter's http cookie manager or the cookie is getting saved by the jmeter cookie manager and not getting passed in the request.</p>
  
  <p>This is what my post from jmeter looks like from tomcat access log:</p>
  
  <p>192.168.247.13 [07/Jan/2011:11:01:27 -0500] r:200 d:58 'POST /dash/account/login HTTP/1.1' 2088</p>
  
  <p>This is what the post to login looks like from a browser (Chrome):</p>
  
  <p>192.168.247.13 [07/Jan/2011:10:56:51 -0500] r:200 d:112 'POST /dash/account/login HTTP/1.1' 16</p>
  
  <p>For some reason, the post from the browser works and it redirects to next page. The post from JMeter returns the view (login.erb) instead of a redirect. Another indication that either the cookie manager is not saving the session cookie or the session cookie is not being sent in the request by jmeter.</p>
  
  <p>Any one ever run into this issue with jmeter and a rails app? Any suggestions?</p>
  
  <p>Thanks in advanced.</p>