Difference between canceling and terminating a CAS session?

Reply
Contributor
Posts: 29

Difference between canceling and terminating a CAS session?

what is the difference?

SAS Employee
Posts: 242

Re: Difference between canceling and terminating a CAS session?

@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).

Contributor
Posts: 29

Re: Difference between canceling and terminating a CAS session?

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? 

SAS Employee
Posts: 242

Re: Difference between canceling and terminating a CAS session?

@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

Ask a Question
Discussion stats
  • 3 replies
  • 110 views
  • 1 like
  • 2 in conversation