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

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

Discussion stats
  • 3 replies
  • 2257 views
  • 1 like
  • 2 in conversation