Implement array sessions on certain callbacks.