I have an app with frontend in javascript (using AngularJS and jQuery) and backend in java. The app has many pages (ng-view).
I need to know whether the session in the backend is currently active or invalidated. Based on that I need to decide whether to show Logout button on the page or not.
Although I have learnt that the session is maintained in the browser using session cookies, from this and this, I concluded that we have to manually set the variable values in the cookie object that we create in javascript.
Is there any way to get the session cookie that is used to communicate with server? By getting that cookie, we can perhaps see whether the session is currently active or not.
Please let me know if my interpratation is wrong.