Cookies Management on ServiceNow instance

alexandreamelin
Giga Contributor

Hello,
We find information about management of cookies on servicenow website : https://www.servicenow.fr/cookie-policy.html.
But nothing (to my understanding), about cookies managements on ServiceNow instance.
In my personal browser I find none cookies stored linked to differents instance I use.
Does instance use cookies ? if yes, for which use case ?
Thanks

2 REPLIES 2

Shahed Shah1
Tera Guru

Hi there,

Just to provide a quick response.

As far as I am aware the cookies are not information gathering and more about session management. Such that, they are there to match your session in the Instance and your browser as well as routing to the node.

Example scenario: There's functionality in the product that uses Ajax calls (GlideAjax, getReference, etc) and the cookie info is added so the results are sent back to the correct session.

You can pull apart the cookie information using the browser developer tools.

Some additional docs that may be of use:

Session management

Remember me checkbox and cookie (recommended to not activate)

I hope you find this helpful while we await a more specialised answer.

Cheers

 

Trevor Muhl
Kilo Sage

If you need to access a cookie value, you can do so with the following code (Server Global):

var request = GlideTransaction.get().getRequest();
var cookies = request.getCookies();
var cookieValue = GlideCookieMan.getCookieValue(cookies, 'my_cookie_name');