Hi All,
Last few days I am trying to improve my application's login functionality.
but all in vain (I Think ). As somewhere I found the following information :
"AJAX applications are not classic HTML applications.The whole page is neither reloaded nor redirected to the new one. Consequently, when HTTP session expires (by default after 30 minutes), any subsequent RPC call will fail and your application will receive ...... The HTML login page as error cause ".
what I trying to do is that when user refreshes browser (clicks on refresh button on browser). the displayed data must not be lost (i.e the application must not be restarted.)
currently what happens is that when user clicks on refresh button on browser, the user need to login again to the application. all privious data has been lost on refresh.
our application have 4 widgets:
headerwidget
mapwidget
sensorwidget
statswidget.
the headerwidget have the username and password textbox and a button 'login'.
the mapwidget have the select list of various cities and a map.
the sensorwidget has the lsitgrid.
the statswidget has simple text displayed on it.
when user enters correct username/password the all widgets loaded through portlet.
after successful login when user selects city , all widget has populated with corresponding values.
the application working fine until user clicks on browser refresh button.
after clicking refresh application module unloaded and we have to login again.
how do we need to implement this so that data will not be affected on refresh ?
please give me suggestion/reference on this.
any help would be appriciated.
Thanks &Regards,
Narendra Shekhawat.
Last few days I am trying to improve my application's login functionality.
but all in vain (I Think ). As somewhere I found the following information :
"AJAX applications are not classic HTML applications.The whole page is neither reloaded nor redirected to the new one. Consequently, when HTTP session expires (by default after 30 minutes), any subsequent RPC call will fail and your application will receive ...... The HTML login page as error cause ".
what I trying to do is that when user refreshes browser (clicks on refresh button on browser). the displayed data must not be lost (i.e the application must not be restarted.)
currently what happens is that when user clicks on refresh button on browser, the user need to login again to the application. all privious data has been lost on refresh.
our application have 4 widgets:
headerwidget
mapwidget
sensorwidget
statswidget.
the headerwidget have the username and password textbox and a button 'login'.
the mapwidget have the select list of various cities and a map.
the sensorwidget has the lsitgrid.
the statswidget has simple text displayed on it.
when user enters correct username/password the all widgets loaded through portlet.
after successful login when user selects city , all widget has populated with corresponding values.
the application working fine until user clicks on browser refresh button.
after clicking refresh application module unloaded and we have to login again.
how do we need to implement this so that data will not be affected on refresh ?
please give me suggestion/reference on this.
any help would be appriciated.
Thanks &Regards,
Narendra Shekhawat.
Comment