Published on InterSystems Developer Community (https://community.intersystems.com)

Home > End Session programmatically

Question
Michoel Reach · Mar 31, 2021

End Session programmatically

We have a background job that keeps an eye on our ongoing CSP sessions, counts licenses used and some other tasks. Question: If I know the session ID (something like "wuuZ2Gwgxw"), how do I (find and) end that particular session programmatically in ObjectScript - i.e., the equivalent of %session.EndSession=1 in the csp page code?

Thanks!

Michael Reach

#ObjectScript #Caché
Product version: Caché 2018.1
$ZV: Cache for Windows (x86-64) 2018.1.4 (Build 505_1_20258U) Thu Sep 10 2020 10:22:22 EDT

Source URL:https://community.intersystems.com/post/end-session-programmatically