GeekInterview.com
Series: Subject: Topic:
Question: 6 of 226

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.
Asked by: Iamhere29 | Member Since Aug-2011 | Asked on: Aug 26th, 2011

View all questions by Iamhere29

Showing Answers 1 - 1 of 1 Answers
bhanu

Answered On : 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 ....

  
Login to rate this answer.

Give your answer:

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

Related Open Questions

Ads

Connect

twitter fb Linkedin GPlus RSS

Ads

Interview Question

 Ask Interview Question?

 

Latest Questions

Interview & Career Tips

Get invaluable Interview and Career Tips delivered directly to your inbox. Get your news alert set up today, Once you confirm your Email subscription, you will be able to download Job Inteview Questions Ebook . Please contact me if you there is any issue with the download.