Destroy session

moncef
Tera Contributor

Hi,

How can i destroy session with scripting in Service Portal.

Thanks.

6 REPLIES 6

Then first, check that condition, pass a flag value to server side & then finally run your server script.

 

Have a look at below link to pass value from client side to server side.

https://serviceportal.io/communicating-between-the-client-script-and-the-server-script-of-a-widget/

Nikhil Dixit
Giga Expert

Hi there,

 

Could you please share more details as per your requirement ? As for as I know you can use ServiceNow functions to set / get /clear client session data using the functions of GlideSession API:

putClientData(name, value);

getClientData(name);

clearClientData(name);

 

Please mark post as corrected and helpful

-- 

Warm Regards

Nikhil Dixit

Engineer

t

Board Line +91-20-6728-5000  | Direct +91-20-6728-5000 | Mobile +91-7828220937

www.DxSherpa.com | Skype : nnikkhil2709dixit |