I am using JMeter (v2.9) to test performance of application based on Alfresco(v5.0.3).
I can not get cookie Alfresco-CSRF Token.
By viewing request in Firefox tools, Alfresco-CSRF Token is given in the Response Header in the request GET /share/page following the request POST /share/page/login.
We have in order :
1. request GET /share/page that sets cookies JSESSIONID; ROUTEECMID; ROUTESHAREID; ROUTESOLRID; CONTLB901
2. request POST /share/page/login that sets JSESSIONID; _alfTest; alfLogin; alfUsername3
3. request GET /share/page that uses in its header cookies : JSESSIONID; _alfTest; alfLogin; alfUsername3; ROUTEECMID; ROUTESHAREID; ROUTESOLRID; CONTLB901. And in its response header, there sould be possible to get Alfresco-CSRF Token.
But, despite sending all needed cookies in the request GET /share/page , there is no cookie Alfresco-CSRF received in the Response Header.
not sure if missed something in your description - the client, in your case jmeter, must have a mechanism to receive and store the cookies. Is your jmeter cookie manager enabled and have set CookieManager.save.cookies=true?
The GET on /share/page should redirect you with a 302 response to the actual starting page, normally the user dashboard. The GET for the user dashboard should then provide you with the CSRF token, as these are generated on each page rendition request.