发布日期: 09/18/2023

Terminate All CAS Sessions

CAS Terminate Sessions() ends all sessions owned by the current user except for the current session.

CAS Teminate Sessions();

You can also specify the session ID to terminate the specified session.

CAS Terminate Sessions(session ID);

Use Get Session() to get the session ID.

url = "http://myCASserver"; // quoted string
cas = CAS Connect(
	URL( url ),
	Username( "my_username" ), // quoted string
	Prompt( "IfNeeded" )
);
session_id = cas << Get Session;

To terminate the current session, use CAS Disconnect().

需要更多信息?有问题?从 JMP 用户社区得到解答 (community.jmp.com).