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

**URL:** <https://discuss.workflowgen.com/t/performance-how-to-configure-workflowgen-and-visual-studio-web-forms-in-sessionless/420>\
**Category:** Performance\
**Created:** [June 17, 2015, 2:20am UTC](https://discuss.workflowgen.com/t/performance-how-to-configure-workflowgen-and-visual-studio-web-forms-in-sessionless/420 "2015-06-17T02:20:30Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![wfg-admin](https://yyz2.discourse-cdn.com/flex030/user_avatar/discuss.workflowgen.com/wfg-admin/32/714_2.png) [@wfg-admin](https://discuss.workflowgen.com/u/wfg-admin)\
**Post date:** [June 17, 2015, 2:20am UTC](https://discuss.workflowgen.com/t/performance-how-to-configure-workflowgen-and-visual-studio-web-forms-in-sessionless/420/1 "2015-06-17T02:20:30Z")

</div>

### 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

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

```
