100% Australian Windows Web Hosting
  • Knowledge Base

Session State Server 

Was this helpful? (5) (1)

All StudioCoast Web Hosting plans provide access to the ASP.NET Session State Server.
This server allows sessions to persist beyond application pool recycles.

An example web.config using the State Server is below (set to 100 hours).

Note: you should always generate your own machine key. There are a variety of machineKey generators available by searching Google.

<configuration>
  <system.web>
        <authentication mode="Forms">
            <forms loginUrl="~/login.aspx" timeout="6000">
                <credentials passwordFormat="Clear">
                    <user name="admin" password="password"/>
                </credentials>
            </forms>
        </authentication>
    <sessionState mode="StateServer"
      stateConnectionString="tcpip=localhost:42424"
      cookieless="false"
      timeout="6000"/>
<machineKey validationKey="CE737FECF40D716CFDF7BEB023D7728D14B8EED65168A1A0C5176F523A2F060730786F1CAB98509128FFD3E47E77457E35C37CEEAD43A4A55A941791718D1B78"
  decryptionKey="0737A5849F141DA5CBD515578319D64711783D5A7D00ECC8B5265AA751E8ADED"
  validation="SHA1" decryption="AES" />
  </system.web>
</configuration>