Regarding handling cookie in Loadrunner script

I am currently facing an issue with LR scripts where in we are losing the cookies that are needed to manage a users session. Could you please let me know on how we can configure the LR scripts to hold the cookies.

Questions by Iamhere29

Showing Answers 1 - 1 of 1 Answers

bhanu

  • Dec 12th, 2011
 

LoadRunner records a web_add_cookie() when a browser sends a cookie from its permanent cookie table to a server.

If a server sends a "Set-Cookie" header to a vuser, LoadRunner will add this cookie to the Vusers virtual cookie table.

All cookies in LoadRunner are maintained in memory. Cookies can be set by the server automatically, or by the client, using web_add_cookies. When the user invokes web_cleanup_cookies(), ALL cookies are removed from the Vusers cookie cache including those added with web_add_cookie(...); and those set by the server.

If you desire to remove a specific cookie from the table, be it set by the web server or via web_add_cookie(), you can use web_remove_cookie(...) function

For more details, please refer LR online books...

start->LoadRunner->Documentation->Function reference ....

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions