How to redirect to login page if session timeout in Spring mvc
How to redirect to login page if session timeout in Spring mvc

I am loading datatable while clicking button , The button click function calls the datatable function to load . So during session timeout if i click the button ,it returns error message "Invalid JSON response" . This is because the session was timed out . How to handle this error and redirect to login page ? is there any option to check response data before loading to datatable ? Please help me in this issue.
Thanks.
This discussion has been closed.
Answers
Any luck on this one...I have the same problem. How do you redirect with ajax when session has timed out? My datatable keeps spinning when I tried redirecting from the server side.