session timeout

I’m using MVC Scheduler and the application is not able to catch session timeout. When session timeout, I can create tasks with scheduler but they are not saved on the database.
How can I catch session timeout?
thanks
Walter

Hello,
i think you may store session id on the client, and periodically check if this session still exist. On the client It may be setInterval function, which will send ajax requests to the server, like

setInterval(function(){ checkSession( sessionId ); }, 5*60*1000);
it will call “checkSession” every 5 minutes