BookmarkSubscribeRSS Feed
3 REPLIES 3
alexal
SAS Employee

@xiaoys0725,

 

Terminate a session only after having tried canceling a session. Using terminate might not release resources (for example, mapped memory and memory involving database connections, and so on).

xiaoys0725
Fluorite | Level 6

Hello alexal, 

 

If I want to stop the session in order to release the space occupied by sessions, will terminating sessions work? 

 

And, is there a way to stop a session by REST api? 

alexal
SAS Employee

@xiaoys0725,

 

Yes, that should work.

And, is there a way to stop a session by REST api? 

  • /cas/sessions/terminate - terminates all user sessions by performing kill -9 on the session processes
  • /cas/sessions/{sessionId}/cancel - ends the specified session using a cancelSession action
  • /cas/sessions/{sessionId}/terminate - ends the specified session by performing a kill -9 on all of the session’s processes

CAS REST API