How to handle the session timeout in dojo

Hi All,

I am in a big trouble. Actually i am using the DOJO toolkit to make an ajax call to fetch some data from the model side which i am showing on my JSP. The model action class forwards to a jsp which i am using in my original jsp to do my intended task.
It is working fine untill the sesion gets expired. Suppose a user leaves the webpage without toching it for say half an hour the sssion gets expired. Now if i click on the link which invokes the dojo ajax call, i get an error occured message(Which is an alert which i have put in dojo call something like this
error: function(type, data, evt){
alert("An error occurred.");
}

now tell me how to handle this such that i can refresh my jsp. Actually whenever the session gets expired and the user tries to do anything on the webpage whic involves the server call the application automaticall tries to authenticate that user. After the authentication it shows a web page where we are supposed to click on a button to proceed further.

Can anyone please help me.

Back to top