endAll and sessions cannot work globally

we cannot ask for all sessions globally since we lose the configuration
object
update callback declaration