My application is using spring boot & angular. I am handling session timeout in Angular Interceptor's "ResponseError" function. At server side , I added a HTTPSessionListener.
I tested this timeout like below: .
1). I set the server session timeout as 120 seconds,
2).logged in to the application ,
3).kept open Internet explorer developer console,
4).waited for 120 seconds to get over,
5).after that , clicked a link which triggers a request to server,
6)now debugging in Internet explorer developer console to see which interceptor function is called ,
Below is the result...
- Angular Interceptor's Response Error Method is called
- HTTP Status code is -1 ( YES minus 1, I am clueless)
- HTTP status text is empty string.
7)now , again clicking an link, and getting the same result as above.
Now my question is , Why am getting HTTP response code -1 and what is the meaning of this?