Destroy session
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-26-2018 01:25 AM
Hi,
How can i destroy session with scripting in Service Portal.
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-26-2018 04:08 AM
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/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-26-2018 01:46 AM
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
--
Nikhil Dixit
Engineer
Board Line +91-20-6728-5000 | Direct +91-20-6728-5000 | Mobile +91-7828220937
| www.DxSherpa.com | Skype : nnikkhil2709dixit |