How to set Session to false or how to clear the session

Chaitanya Chowd
Kilo Expert

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.

4 REPLIES 4

Deepak Ingale1
Mega Sage

Hi,



You can look for installation exists for logout.


There you can write a code for redirection



Log Out Redirect To ESS


Hi Deepak,



This doesn't seem to be working. Is there a way to set session to false in Jakarta.



Thanks & Regards,


DCN


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.


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.