Sharing the same session in two different web applications

I have used two different web applications, one that was developed in Asp.net and the other that I am currently developing is in AngularJS (which is standalone).

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

if possible then please suggest me how can i achieve this?

Thanks, help would be appreciated.

+3


source to share


1 answer


it is not possible to access the session stored in the application pool in your IIS.

I would suggest two workarounds:



  • add a REST endpoint that gets the session key and retrieves the VALUE, then use that service with your angular.js code to get the session values.

  • refactor your asp.net code to work with cookies instead of session, and then you can access that data.

+5


source







All Articles