Expand my Community achievements bar.

Submissions are now open for the 2026 Adobe Experience Maker Awards.
SOLVED

Response Set cookie not available in Dispatcher

Avatar

Level 1

Hi,

 

Using AEM as a cloud. Setting cookie in servlet response object.  Cookie is not available in dispatcher.

 

Any Dispatcher level config do i need to do.

 

Thanks.

1 Accepted Solution

Avatar

Correct answer by
Community Advisor
4 Replies

Avatar

Community Advisor

Hi @ManojiniMo2 

 

Did you get a chance to look at this community post -

 

https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/setting-a-cookie-through-d...

 

Hope this helps

 

Thanks

Avatar

Level 8

If you’re setting a cookie as part of your servlet's response object, it should be passed to the browser.

Could you confirm if you’ve set any specific path for the cookie?

If possible, please share the code snippet where the cookie is being set. This will help in understanding if any other parameters (like domain, path, or expiry) are affecting its behavior.

Avatar

Correct answer by
Community Advisor

Avatar

Community Advisor

Hi @ManojiniMo2 

# In dispatcher.any, add this to allow cookies:

/filters {
/0001 { /type "allow" /url ".*" }
}

# Ensure Cache-Control headers prevent caching of dynamic pages that use cookies.

# Check for cross-domain issues and ensure SameSite cookie settings are correct.

# Review Dispatcher logs for errors related to cookies.