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-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

Register now

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