views:

13

answers:

2

Hi, I'm wondering if it is possible to change dynamically the session time for currently logged user. I'm communicating with a WebService which does a long-running task, and while the it sends the final response, I don't want the user to be logged out. Is it possible ?

+2  A: 

One technique involves continuously pinging the application at regular intervals using AJAX or some dummy image fetching which will renew the session cookie.

Darin Dimitrov
A: 

Show a processing page and have it auto refresh at appropriate intervals of time. You want to do this anyway, as you can't have the browser waiting for such a long running operation.

Above said, why do you need for the user to still be logged? Is this happening client side instead? If it is done server side you should structure the code so it isn't affected by the session like that.

eglasius