Performance: How to configure WorkflowGen and Visual Studio web forms in sessionless

Notes

  • This article applies only to WorkflowGen versions 5.7.2 and later, and only if your Visual Studio web forms do not use session variables to store data.

  • As of WorkflowGen version 6.0.2, the web configuration is set to sessionless by default.

To configure WorkflowGen and Visual Studio web forms in sessionless for improved response time, the parameters listed below must be set as follows.

Without Visual Studio web forms

  • WorkflowGen web.config file: <pages enableSessionState="false" />

With Visual Studio web forms using WorkflowGen.My WorkflowFileUpload v2.3.8.1 or later

  • WorkflowGen web.config file: <pages enableSessionState="false" />

  • The this.IsSessionLess parameter must be set to true in the web form constructor (see below for sample code)

With Visual Studio web forms using WorkflowGen.My WorkflowFileUpload v2.3.8.0 or earlier

  • WorkflowGen web.config file: <pages enableSessionState="false" />

  • Web form web.config file: <pages enableSessionState="true" />

  • The this.IsSessionLess parameter must be set to true in the web form constructor (see below for sample code)

Sample code to set the web form in sessionless

public partial class _Default : WorkflowPage
{
    public _Default() : base()
    {
        this.IsSessionLess = true;
    }
}