Sharing a single session within two different Web applications

1.1k views Asked by At

I have been using two different web application, one has been developed in Asp.net and other which i am developing right now is in AngularJS(which is stand alone).

so now my question is, Is it possible to access a session of ASP.net app to Angularjs App?

if it is possible to do so then please suggest me how can i achieve it?

Thanks, Help will be appreciated.

1

There are 1 answers

3
Stav Mizrahi On BEST ANSWER

it's not possible to access the session as it saved on the application pool on your IIS.

I would suggest two workarounds:

  1. add REST end point which get the session KEY and retrieve the VALUE, then use this service with your angular.js code to get the session values.

  2. refactor your asp.net code to work with cookies instead of session and then you could access this data.