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

Set AMCV cookie as httpOnly cookie

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.
Avinash_Gupta_
Avinash_Gupta_Accepted solution
New Participant
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.

3 replies

Urs_Boller
New Participant
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

Translate
Avinash_Gupta_
Avinash_Gupta_Accepted solution
New Participant
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.

Translate
Gaureshk_Kodag
Employee
November 29, 2022

thanks a lot @avinash_gupta_,. this is helpful.

Translate