Set session configuration when using memory sessions