Expand my Community achievements bar.

SOLVED

Set the HttpOnly attribute for the s_nr[lenght] cookie

Avatar

Level 2

Hi,

 

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

 

Thanks.

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hi, 


In theory, I think it is possible by tweaking this script: https://experienceleague.adobe.com/en/docs/analytics/implementation/vars/plugins/getnewrepeat#instal.... 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-th... 

 

Hope this helps



Esteban Bustamante

View solution in original post

2 Replies

Avatar

Level 2

Hi, 

 

Can you help me out with the query?

 

Thanks.

Avatar

Correct answer by
Community Advisor

Hi, 


In theory, I think it is possible by tweaking this script: https://experienceleague.adobe.com/en/docs/analytics/implementation/vars/plugins/getnewrepeat#instal.... 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-th... 

 

Hope this helps



Esteban Bustamante