Click here to Skip to main content
15,888,052 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi guys,

I have asp.net web site with C# and sql server as database. This web site is currently running on domain.

i'm trying to maintain the session state, but still i'm failed to get..

this is what i have tried so far, in web.config, i have added this line

<system.web>
    <sessionState mode="InProc" cookieless="false" timeout="1440"/>
    <authentication mode="Forms">
      <forms loginUrl="~/Default.aspx" timeout="1440"/>
    </authentication>
    <compilation debug="true" targetFramework="4.0">
.
.
.
</system.web>


locally its working, but on domain its not wokring...
its dragging the user to the login page while working or on idle for morethan 20mins.

can anyone plz help me, how can i solve this,
n allow user to work, n maintain session state.

Thanks
Posted

1 solution

 
Share this answer
 
v3
Comments
Laiju k 6-Nov-14 3:20am    
then which Session Timeout will be taken IIS/Web Config
DamithSL 6-Nov-14 3:27am    
Laiju, when your app pool timeouts, the worker process will shut down and session data will lost even you have large session timeout.
abdul subhan mohammed 7-Nov-14 15:02pm    
guys how to set iis app pool timeout on domain??

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900