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

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

joynarasimmajoynarasimma Posts: 1Questions: 1Answers: 0

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.

Answers

  • mak1mak1 Posts: 25Questions: 13Answers: 1

    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.

This discussion has been closed.