Expand my Community achievements bar.

Join us for the next Community Q&A Coffee Break on Tuesday April 23, 2024 with Eric Matisoff, Principal Evangelist, Analytics & Data Science, who will join us to discuss all the big news and announcements from Summit 2024!
SOLVED

How to secure the s_cc & s_sq cookies

Avatar

Level 1

Is there a way to encrypt these two cookies using the standard secure flag?  What about httponly?

1 Accepted Solution

Avatar

Correct answer by
Employee

Hi Matt,

Just a follow up on this.  The s_cc and s_sq cookies are set and read within AppMeasurement code.  I don't believe there is anything that checks s_cc or s_sq on the server's end.  What this means is I don't think that you would be able to change how these cookies are set (httpOnly or secure) unless you are using your own s.trackingServer implementation and have a service to call on that domain that modifies these cookies.

Because they are read within the AppMeasurement javascript code, setting these to httpOnly would affect functionality and stats.

However, changing them to secure would probably not affect functionality or stats.

Thanks,

Ben

View solution in original post

4 Replies

Avatar

Level 5

Hi

 

Please consider below mentioned step while working with cookies:

  • Limit the amount of sensitive information stored in the cookie.
  • Limit the subdomains and paths to prevent interception by another application.
  • Enforce SSL so the cookie isn’t sent in cleartext.
  • Make the cookie HttpOnly so its not accessible to javascript.

 

 

Regards

Devinder

Avatar

Level 1

Hi Devinder,

 

If we set the secure flag and the httponly flag for the Site Catalyst cookies will it affect any functionality or stats?

Avatar

Correct answer by
Employee

Hi Matt,

Just a follow up on this.  The s_cc and s_sq cookies are set and read within AppMeasurement code.  I don't believe there is anything that checks s_cc or s_sq on the server's end.  What this means is I don't think that you would be able to change how these cookies are set (httpOnly or secure) unless you are using your own s.trackingServer implementation and have a service to call on that domain that modifies these cookies.

Because they are read within the AppMeasurement javascript code, setting these to httpOnly would affect functionality and stats.

However, changing them to secure would probably not affect functionality or stats.

Thanks,

Ben

Avatar

Level 5

Hi

As soon as it went under secure gateway the cookies need to be rewrite with the same value or could use specific programming functions to sustain the preset values.

 

 

Regards

Devinder