This is a migrated thread and some comments may be shown as answers.

Asyncupload - Session expired

3 Answers 136 Views
AsyncUpload
This is a migrated thread and some comments may be shown as answers.
Sathish Rajan
Top achievements
Rank 1
Sathish Rajan asked on 01 Apr 2011, 04:35 AM
Hi,

We are using AsyncUpload control in our application, we are maintaining the system login using session variable and session will expire if it is idle for 60 mins. We tried to upload 100 MB file, it took more than 60 mins to complete the upload process, but it expired the session. 

Since the upload is in progress, how the session is getting expired?

Can someone please help on this?

Thanks in advance.

3 Answers, 1 is accepted

Sort by
0
Peter Filipov
Telerik team
answered on 01 Apr 2011, 01:50 PM
Hi Sathish Rajan,

A possible solution for your problem is to increase the session timeout.
First change it into the web.config file and then set it in the IIS.
Here are some helpful resources - IIS(IIS7).

The session is getting expired because while uploading the file connection thread is idled.

Regards,
Peter Filipov
the Telerik team
0
mbaaz.old
Top achievements
Rank 1
answered on 14 Jun 2011, 10:51 AM
Another tip you can use is what we do:

On the page where the upload control is, you can put a javascript, that every 5 minutes (or any other interval for that matter) requests a web service in you application (over ajax of course). The call for this web service will then make sure that the session is "refreshed", and will not expire, but the client will never notice that it is happening.
0
Peter Filipov
Telerik team
answered on 16 Jun 2011, 09:56 AM
Hello Sathish,

Matts' approach is another way to keep the session alive.

Greetings,
Peter Filipov
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Tags
AsyncUpload
Asked by
Sathish Rajan
Top achievements
Rank 1
Answers by
Peter Filipov
Telerik team
mbaaz.old
Top achievements
Rank 1
Share this question
or