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

hackathon24-white-horiz.png

The 2025 SAS Hackathon Kicks Off on June 11!

Watch the live Hackathon Kickoff to get all the essential information about the SAS Hackathon—including how to join, how to participate, and expert tips for success.

YouTube LinkedIn

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