White screen issue, if an user stays idle in an asp.net page -


in our asp.net website 1 of page has tabs in it. each tab represents different content , moving 1 tab reloads entire page. if i'm in 1 of tab , stay idle there around minute or more , move on tab, white blank screen comes up.(with no page source code info in browser).

sadly same issue not @ reproducible same website in lower testing environment. issue occurring in production version of website.

is there iis setting or web.config setting should change resolve issue. believe source code of concerned webpage wouldn't reason.

this because session timeout has reached limit ending session.

you have 3 possible solutions in case:

first

you can try editing web.config file located on root of application extend session timeout. try this:

<sessionstate mode="stateserver" timeout="500">  </sessionstate> 

according msdn can set timeout 525,601 minutes (1 year).

second

if doesn't work , have access, can try editing timeout on iis:

open iis, click on application pools, select application pool application.

right click on that, select properties.

in performance tab, set idle timeout desired minutes "shutdown worker processes after being idle ..... minutes".

important: apart have set timeout in web.config said above.

third

you can create ajax function executed in background, preventing session expiring:

function keepsessionalive(mod) { mod.open("get", "blank.html", true);             mod.onreadystatechange = function() {     if (mod.readystate == 4) {                   document.getelementbyid("#blankdiv").innerhtml = mod.responsetext;     } };   mod.send(null) } setinterval('keepsessionalive()', 100000); 

that's it. hope helps.


Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -