BookmarkSubscribeRSS Feed
Fluorite | Level 6

Is there a way of programmatically getting a list of user
with open SAS Web Sessions?


I am looking for a way of querying the list of users shown
in the SAS Web Administration Console and close any old session. Programmatically

Lapis Lazuli | Level 10

It depends.

If your requirement is to terminate "inactive" sessions("old" = "inactive" ?)  then you could simply rely on SAS time-out values : Stored Process or Pooled Workspace sessions are supposed to be closed automatically when the time out limit has been reached (30 minutes by default on 9.2 SAS EBI). However, if you want to kill any SAS web session, either "active" or "inactive" then that's a different matter.

If you have SAS 9.3 or beyond then you could try using Procedure IOMOPERATE to list active user sessions meaning running SAS sessions like Stored Process or Pooled Wk server -  and stop them :

If you want to terminate SAS Web sessions with no corresponding SAS sessions, then it depends on your implementation : J2EE Application Server like Jboss and/or front-end http Server like Apache could be accessed with different tools to forcibly terminate user sessions according to a set of given rules.

suga badge.PNGThe SAS Users Group for Administrators (SUGA) is open to all SAS administrators and architects who install, update, manage or maintain a SAS deployment. 

Join SUGA 

Get Started with SAS Information Catalog in SAS Viya

SAS technical trainer Erin Winters shows you how to explore assets, create new data discovery agents, schedule data discovery agents, and much more.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 1 reply
  • 2 in conversation