Sign In Register

How can we help you today?

Start a new topic
Answered

How to kick off all users

I am in the build/testing stage of my project. I am the only one making API calls. I have noticed that sometimes the "active users now" is stuck on 1 and this will cause testing issues. Is there a way to release this? kick off all active users?


Best Answer

Hi Robert,


You can use the api call to disconnect a user:  Spark.getPlayer().disconnect();


Thanks,


Oisin


Answer

Hi Robert,


You can use the api call to disconnect a user:  Spark.getPlayer().disconnect();


Thanks,


Oisin

i was asking how do do this from the admin console. I figured out how to do it in the test harness. Thanks...

Okay that's very nice, but maybe you should consider to fix this bug one day. Also, how could this be done from the test harness? 


Thanks

Hi Artem, 


In the Test Harness if you are logged in as an authorised user click into "Analytics" then "EndSessionRequest" then click play to run it, this will end the current authorised users session. You can double check this in noSQL by querying the system player collection with "{ "online": true}" to make sure no one is still online.


Thanks,

Liam

Login to post a comment