Piyush Parikh

Piyush Parikh

  • 1.7k
  • 72
  • 46.3k

Session Isssue

Feb 19 2014 6:55 AM
project working on local server but on host server its destroy within 2/3 minute


i applied this but not working
 <sessionState mode="InProc" timeout="60">    its not working 

look in my web config 


<?xml version="1.0"?>
<!--
 For more information on how to configure your ASP.NET application, please visit
 http://go.microsoft.com/fwlink/?LinkId=169433
 -->
<configuration>
  <connectionStrings>
    <add name="dd" connectionString="Provider=Microsoft.Jet.OLEDB.4.0;Data Source= D:\INETPUB\VHOSTS\shadi\httpdocs\App_Data\Matrimony.mdb;" />
  </connectionStrings>

  <system.web>
   
    <httpRuntime executionTimeout="3600" maxRequestLength="2097151" />
    <machineKey validationKey="1234567890123456789012345678901234567890AAAAAAAAAA" decryptionKey="123456789012345678901234567890123456789012345678" validation="SHA1" decryption="Auto" />
    <customErrors mode="Off" defaultRedirect="GenericErrorPage.htm">
      <error statusCode="403" redirect="NoAccess.htm" />
      <error statusCode="404" redirect="FileNotFound.htm" />
    </customErrors>
    <compilation debug="true" targetFramework="4.0" defaultLanguage="c#">
      <assemblies>
        <add assembly="System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
        <add assembly="System.Web.Extensions.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
        <add assembly="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
      </assemblies>
    </compilation>
  </system.web>
</configuration>


Answers (5)