Don't get session value in angularjs file
2 answers
ASP.NET is the backend and Angular runs in the browser .; -)
You have several options:
-
write the session to a cookie (if not already done by ASP.NET) and read the value through the angular-cookies library
-
write a RESTful service to get the session information value
-
output value to hidden field and read it through jquery
+3
source to share