Set the HttpOnly attribute for the s_nr[lenght] cookie | Community
Skip to main content
Level 2
September 4, 2024
Solved

Set the HttpOnly attribute for the s_nr[lenght] cookie

  • September 4, 2024
  • 2 replies
  • 505 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.
Best answer by EstebanBustamante

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

2 replies

RaulFoAuthor
Level 2
September 9, 2024

Hi, 

 

Can you help me out with the query?

 

Thanks.

EstebanBustamante
Community Advisor and Adobe Champion
EstebanBustamanteCommunity Advisor and Adobe ChampionAccepted solution
Community Advisor and Adobe Champion
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