HttpContext.Current is null in custom WffmSaveAction with split CD / CM servers


Using Sitecore 8.1 rev 160519, WFFM 8.1 rev 160523

I've created a custom WffmSaveAction, and inside it I use HttpContext.Current to access cookies and the current page path. This all works fine on my single server dev environment. However in the live environment, with separate CD / CM servers, HttpContext.Current is null inside my save action Execute.

I assume I have some kind of server configuration problem but I don't know why it would be behaving differently. Any ideas? Thanks.

  • In scaled environments, WFFM Actions use Event Queue to process the save actions. So you may not have access to cookies. There is a setting in Save Action item called Client Action. You could enable the setting and try.