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

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.
EstebanBustamante
EstebanBustamanteAccepted solution
New Participant
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

2 replies

EstebanBustamante
EstebanBustamanteAccepted solution
New Participant
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

Translate
Esteban Bustamante
RaulFoAuthor
Level 2
September 9, 2024

Hi, 

 

Can you help me out with the query?

 

Thanks.

Translate