Does the Service Portal use cookies? Can this be managed in ServiceNow? If yes, how?

Peter Timmerman
Tera Contributor

Does the Service Portal use cookies? Can this be managed in ServiceNow? If yes, how?

1 REPLY 1

Community Alums
Not applicable

Hi @Peter Timmerman ,

This doc covers mostly all of it :https://docs.servicenow.com/bundle/sandiego-platform-administration/page/administer/security/referen...

putClientData(name, value);

getClientData(name);

clearClientData(name);

 

From a server script, call the function like this:

gs.getSession().putClientData('variable_name1', 'value1');

 

 and then get it from the client like this:

var value = g_user.getClientData('variable_name1');

 

Please mark my answer as Correct & Helpful, if applicable.

Thanks

Sandeep