Set AMCV cookie as httpOnly cookie | Community
Skip to main content
Gaureshk_Kodag
Adobe Employee
Adobe Employee
November 28, 2022
Solved

Set AMCV cookie as httpOnly cookie

  • November 28, 2022
  • 2 replies
  • 1770 views

Hey Community,

Is there any way to set AMCV cookie as httpOnly cookie? 

 

 

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Avinash_Gupta_

Hi @gaureshk_kodag You can make the AMCV cookie secure by adding the below snippet of code

 

var visitor = Visitor.getInstance("INSERT-MARKETING-CLOUD-ID-HERE",{

        //Set secure cookie property
        secureCookie: true
 });

 

Refer to this article that discuss about how you can make the entire cookies generated by Adobe Secure and httpOnly.

 

https://experienceleaguecommunities.adobe.com/t5/adobe-analytics-questions/secure-cookies-httponly-secure/m-p/328929 

 

Hope this helps.

2 replies

Avinash_Gupta_
Community Advisor and Adobe Champion
Avinash_Gupta_Community Advisor and Adobe ChampionAccepted solution
Community Advisor and Adobe Champion
November 28, 2022

Hi @gaureshk_kodag You can make the AMCV cookie secure by adding the below snippet of code

 

var visitor = Visitor.getInstance("INSERT-MARKETING-CLOUD-ID-HERE",{

        //Set secure cookie property
        secureCookie: true
 });

 

Refer to this article that discuss about how you can make the entire cookies generated by Adobe Secure and httpOnly.

 

https://experienceleaguecommunities.adobe.com/t5/adobe-analytics-questions/secure-cookies-httponly-secure/m-p/328929 

 

Hope this helps.

Gaureshk_Kodag
Adobe Employee
Adobe Employee
November 29, 2022

thanks a lot @avinash_gupta_,. this is helpful.

Urs_Boller
Community Advisor
Community Advisor
November 29, 2022

additional information: If you use Adobe Launch for the configuration, just add the secure in the extension settings: https://experienceleague.adobe.com/docs/experience-platform/tags/extensions/client/id-service/overview.html?lang=en#variables