ASP.NET Session TimeOut problem -


i have wired scenario in 1 of asp.net application.

i using asp.net membership custom "rolemanager",

and having below tag in web.config restrict user not having role of "keywords"(roles) access "keywords"(path) folder

<location path="keywords">  <system.web>  <authorization>  <allow roles="keywords"/>  <deny users="*" />  </authorization>  </system.web>  </location> 

if user other role allow assess url (keywords in case) redirected custom- access denied page.

now things working fine when left application inactivity of 30 min not able visit "keywords", time end custom- access denied page, if close browser, login again start working fine.

please me in case.

thanks in advance

asp.net sessions time out after 20 minutes default, think.

you can extend specifying longer time (in minutes) in web.config:

<system.web>     <sessionstate timeout="60"/>     ... </system.web> 

if authenticating via forms, should raise authentication cookie timeout value match.

also bear in mind that, when running site under iis, should extend application pool's idle timout similar. if don't this, httpapplication instance asp.net site unloaded, destroying active sessions in process.


Comments

Popular posts from this blog

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

c# - How to add a new treeview at the selected node? -

java - netbeans "Please wait - classpath scanning in progress..." -