Is there a way in c# to set Http and Secure flag true for shell#lang cookie (in my case website#lang). As this cookie is Sitecore cookie.

enter image description here

Any help/pointer would be a great help.


  • The cookie secured in that link is scContentEditorFolderWidth and not shell#lang and that too for ContentEditor However I want to secure shell#lang cookie (in my case its website#lang) which is coming in my website cookies Please suggest – user5191 Mar 8 '19 at 8:20
  • Hello, Can anyone please help on this? – user5191 Mar 12 '19 at 11:46
  • 1
    Hello, Answer here sitecore.stackexchange.com/questions/12890/… is not helpful. As my issue is different from this, I am trying to secure shell#lang cookie specifically. However, solution provided in above link is to secure: ASP.NET_SessionId, scContentEditorFoldersWidth, SC_ANALYTICS_GLOBAL_COOKIE Any pointer will be great help! Thanks! – user5191 Mar 14 '19 at 13:50
  • Hi Mark, I think this is not considered a duplicate since it has a different cookie object. Also, I can't find any js that has setCookie for "shell#lang". – Dika Purnasucita Nov 4 '19 at 6:38