Hi I am facing a problem with spring security+Spring MVC+angular javascript.. When the session is invalid I want to request the (whole) page to get redirected to login page.
I tried <session-management invalid-session-url="/login" />
But its not working since its a one page app...
Or any suggestion to handle sessiontimeout in angular javascript single page app
Any help ?
You can write or use HTTP interceptors like this https://github.com/witoldsz/angular-http-auth to capture timeout issues.
Basically when session expires any server request starts to return 401, which can be capture by using HTTP interceptor and necessary redirects can be performed.
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments