I have a scenario where I open my web application in a browser but in two separate tabs.
In one tab I signed out from the application and as a result the all session val
Take hidden field with id or class and value with session and get it in javascript.
Javascript var session = $('#session').val(); //get by jQuery