Click here to Skip to main content
16,018,904 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi,
I have an ASP.NET application and have one page in which all the server side processing are using Page Methods (Script Manager is available on page).
Now the issue is that there are multiple asynchronously processed on server some are taking 1~20 seconds but one of them takes 30 minutes approx. Some are executed on success of other one.
Session timeout (20 min) and execution timeout (60 min) and working as expecting.

I have also a java-script function who checks the idle time on user and if user not taken any action until 20 min then a warning message appears and user will automatically logged out even one asynchronous request is still running behind.

Is there any way to check if any asynchronous request is still running? If yes then i will check on my java-script code who checks the idle time.
Posted
Updated 30-Jul-15 1:34am
v2
Comments
Aravindba 30-Jul-15 7:52am    
Is this ur customer wait for 30 mins for finishing process ? if ur website takes more than 10 mins for finishing one process is not good one,ur going to lose ur customer.
For E.g. i am specify 10 mins,may be if more than 5 mins also not good.Try to change ur processing time for

1 solution

The only way to do this, that I can think of, is in your JavaScript set a global variable that you can check to see if it has finished or not. The problem is the user could browse to a different page and your process will never return back to JS to reset the variable.

You could call a webservice to check session settings but then the problem is you'll reset your session timeout every time you contact the server which is probably what you don't want to do.

It sounds like you should really increase the session timeout dramatically to account for these processes.
 
Share this answer
 

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