rahulkotha07 opened a new pull request, #6458:
URL: https://github.com/apache/jmeter/pull/6458

   ## Description
   This change enhances the HC4CookieHandler.java to support handling multiple 
cookies, each with its own configurable expiry time (via Max-Age).
   It ensures cookies are properly invalidated and removed after expiry so that 
new cookies are issued on subsequent requests.
   
   ## Motivation and Context
   The original implementation supported a single cookie with expiry. This 
enhancement allows testing of multiple cookie scenarios with different 
lifetimes, which is critical for applications simulating real-world session 
behavior or user tracking.
   It helps validate cookie expiration handling in downstream systems using 
Apache JMeter’s HTTP components.
   
   ## How Has This Been Tested?
   Manual testing via a custom Spring Boot application that sets multiple 
cookies with varying Max-Age values.
   JMeter was used to trigger requests and verify that cookies expired and were 
reissued correctly.
   Verified cookie storage and expiry via debug logs and inspection of request 
headers.
   
   ## Screenshots (if appropriate):
   
![image](https://github.com/user-attachments/assets/d0ec2dc0-93dc-49cd-8abb-e3fc49a7e695)
   
![image](https://github.com/user-attachments/assets/2c971961-ea5e-4e29-8f00-2ac8c4ea3f2b)
   
![image](https://github.com/user-attachments/assets/6b17c4a8-0b22-44bd-a22c-697036fa6606)
   
![image](https://github.com/user-attachments/assets/390a01fd-8019-4f5e-a836-88b5fab25db5)
   
![image](https://github.com/user-attachments/assets/ea0d2a1f-3f38-40f4-afe8-0946bd1c4708)
   
   
   ## Types of changes
   <!--- What types of changes does your code introduce? Delete as appropriate 
-->
   - New feature (non-breaking change which adds functionality)
   
   ## Checklist:
   <!--- Go over all the following points, and put an `x` in all the boxes that 
apply. -->
   <!--- If you're unsure about any of these, don't hesitate to ask. We're here 
to help! -->
   - [x] My code follows the [code style][style-guide] of this project.
   - [x] I have updated the documentation accordingly.
   
   [style-guide]: https://wiki.apache.org/jmeter/CodeStyleGuidelines
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@jmeter.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to