I have an anm application that manages the user reserved area for a website.
In IIS I configured the website www.demo.com (asp.net web pages) and then added the anm webapp to it (www.demo.com/anmwebapp), so they are two different technoologies solutions.
Now I would like to know from the root website whether a user is logged in to the anm webapp or not (and know the username). What are the best ways?
- COOKIES ACCESS SOLUTION: The authentication cookies generated by anm have the path /anmwebapp and not the root path / , and therefore they are not visible from the site. Even if I generated them with the root path / , how could I read them to find out if a user is logged in and their username?
- WEBAPI SOLUTION: I could create a webapi to return the IsLoggedIn status with the CurrentUserName, but I have to call it with every page load and I don’t want to unnecessarily burden the server.
- Any other ideas?