Skip to content

Update HC4CookieHandler.java handler to manage multiple cookies with …#1

Merged
rahulkotha07 merged 1 commit intomasterfrom
rahulkotha07-patch-1
May 25, 2025
Merged

Update HC4CookieHandler.java handler to manage multiple cookies with …#1
rahulkotha07 merged 1 commit intomasterfrom
rahulkotha07-patch-1

Conversation

@rahulkotha07
Copy link
Owner

…individual expiry times

Introduced HC4Cookie utility to support issuing and managing multiple cookies, each with its own expiry time (Max-Age).

Updated HC4CookieHandler to correctly remove cookies from the response once their Max-Age is hit, ensuring a new cookie is issued in subsequent requests.

Key changes:

  • Created HC4Cookie.java to encapsulate cookie creation logic with customizable Max-Age.
  • Ensures expired cookies are removed automatically and new ones are issued on next request.

This provides better control and flexibility for testing real-world cookie management scenarios.

Description

Motivation and Context

How Has This Been Tested?

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Checklist:

  • My code follows the code style of this project.
  • I have updated the documentation accordingly.

…individual expiry times

Introduced HC4Cookie utility to support issuing and managing multiple cookies, each with its own expiry time (Max-Age). 

Updated HC4CookieHandler to correctly remove cookies from the response once their Max-Age is hit, ensuring a new cookie is issued in subsequent requests.

Key changes:
- Created HC4Cookie.java to encapsulate cookie creation logic with customizable Max-Age.
- Ensures expired cookies are removed automatically and new ones are issued on next request.

This provides better control and flexibility for testing real-world cookie management scenarios.
@rahulkotha07 rahulkotha07 merged commit 9aa3205 into master May 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant