|
Description
When using LoadRunner with web applications one usually needs to correlate a session id or similar. Sometimes this is sent to the client via a cookie, but there is no way to read the cookies value with the LR cookie funktions.
Solution
The web_reg_save_param funktion considers both header and body of the server's response, so here we go:
(cookie's name is "sessionid")
web_reg_save_param("sid","LB=Set-Cookie: jwssessionid=","RB=;",LAST);
Then the Parameter "sid" will contain the value.
If you need the other cookie fields, the best way to find the right parameters for web_reg_save_param is to log the data returned by the server (Run-Time-Settings->Log->Extended Log->data returned by server) and check the header. |
|