Skip to main content

Invalidate_sessions

Invalidate_Sessions

Sending this request will invalidate all the currently active sessions that match. This has the effect of re-triggering the USER_NEW trigger, allowing you to selectively close some of the existing connections after they have been previously allowed.

If the trigger is not used, this API call is still executed but will have no noticeable effect.

It has two variants, which behave identically, and can be called as follows:

//Either...
{
"invalidate_sessions": "streamname" //name of stream to invalidate sessions for
}
//Or...
{
"invalidate_sessions": [
"streamname", //name of stream to invalidate sessions for
//multiple streams may be specified simultaneously
]
}

There is no response to this request, and the effect is immediate.