Add custom session handler.