How to set Session to false or how to clear the session
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-22-2018 10:37 PM
Hi All,
In Helsinki, session.loggedIn = false;(session = gs.getSession) was working fine and now it is not working in Jakarta.
How to set the session to false.
The requirement is, once a particular user logged out from a website(not ServiceNow), user should be redirected to ServiceNow login page.
Regards,
DCN.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-22-2018 10:41 PM
Hi,
You can look for installation exists for logout.
There you can write a code for redirection
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-22-2018 10:51 PM
Hi Deepak,
This doesn't seem to be working. Is there a way to set session to false in Jakarta.
Thanks & Regards,
DCN
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-22-2018 11:11 PM
Hi,
Your requirement to send user after logging out to another page can be fulfilled by modifying installation exists logout script.
Could you please share some screenshot where instalaltion exist is not working for you?
You might have several of those in your instance , if you also have SSO or MultiSSO plugin installed.
One you will require to check is either with logout or the one which overrides logout.
Sending screenshots of list view of installation exists and code you are trying to modifying will help.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-22-2018 11:23 PM
Hi Deepak,
Please find issue below:
The customer is not allowed to access servicenow internal page. Once he enter the username and password, it redirect to portal page which is expected behavior, but when he clicks on browser BACK or logout it is not killing the session.(he is now able access internal service catalog which is not correct). It should clear the session.
we used script include and it was working fine in Helsinki.
But after upgrade this 'session.loggedIn = false;' now it is not working in JAKARTA.