Session store can be configured with a callback function