Get your server issues fixed by our experts for a price starting at just 25 USD/Hour. Click here to register and open a ticket with us now!

Author Topic: Increasing session timeout from the Web.config.  (Read 3197 times)

0 Members and 1 Guest are viewing this topic.

Chetan Singh

  • Full Member
  • ***
  • Posts: 123
  • Karma: +2/-0
  • Bienvenido a las Tecnologías de la Admin-Ahead.
    • Admin-Ahead Server Technologies.
Increasing session timeout from the Web.config.
« on: November 16, 2013, 08:13:58 am »
Hi,

Please follow these steps to increase/change ASP session timeout from the web.config. You can use "in-proc" for the simplest method which will store the sessions inside the memory of your application.

To do this, the string will be changed to something like this in the web.config:

===============>>>
<configuration> <system.web> <sessionState mode="StateServer" cookieless="false" timeout="30" /> </system.web> </configuration>

After changing sessionState to StateServer, we recommend creating a key. Visit this URL:

http://aspnetresources.com/tools/machineKey, use it to generate a key and insert it between the<sessionState> and </system.web> tags like so:

<system.web>

<sessionState mode="StateServer" stateNetworkTimeout="1200" />
<machineKey decryptionKey="1968ASFDASFA78FA0FAFFAFAFAFS,IsolateApps" validationKey="0AF99CB33B4ASDADADSADSAFSAFASFAF,IsolateApps" />

 </system.web>
===============>>>

Thank you,
Get your server issues fixed by our experts for a price starting at just 25 USD/Hour. Click here to register and open a ticket with us now!