Skip to main content
Level 2
September 4, 2024

Set the HttpOnly attribute for the s_nr[lenght] cookie

  • September 4, 2024
  • 2 replies
  • 537 views

Hi,

 

Is it possible I can get the HttpOnly attribute set for the s_nr[lenght] cookie?

 

Thanks.

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

2 replies

RaulFoAuthor
Level 2
September 9, 2024

Hi, 

 

Can you help me out with the query?

 

Thanks.

EstebanBustamante
Adobe Champion and Community Advisor
Adobe Champion and Community Advisor
September 10, 2024

Hi, 


In theory, I think it is possible by tweaking this script: https://experienceleague.adobe.com/en/docs/analytics/implementation/vars/plugins/getnewrepeat#install-the-plug-in-using-appmeasurement. However, I believe this is done on purpose because the "getNewRepeat" plugin will update the value of the cookie through JS, so marking it as HttpOnly will cause the plugin to stop working as expected. You can read more here: https://experienceleague.adobe.com/en/docs/analytics/implementation/vars/plugins/getnewrepeat#use-the-plug-in 

 

Hope this helps

Esteban Bustamante