Check if ANM user is logged in from parent website

This public forum is for user-to-user discussions of ASP.NET Maker. Note that this is not support forum.
Post Reply
Andros
User
Posts: 113

Check if ANM user is logged in from parent website

Post by Andros »

Hi.
I have a website (.NET CLR v4.0.30319) and inside an ANM web application that I use for user account.
So users can navigate the website, and then access then ANM web app to access their user account with some personal info.
I need to know even in the website if the user is logged in in the ANM web app.
How can I do this? Whats' the best practice?
From the website I can't access the ANM webapp, so I think that I have to check the login cookies, session id or something else...
Any idea?


MichaelG
User
Posts: 1160

Post by MichaelG »

If you have enabled the Force logout user option, you should be able to see the list of active users when you log in as the hard code super admin.


Andros
User
Posts: 113

Post by Andros »

Ok thank you. I'll check it.
But what about the standard cookies/session check method? Can I check the validity of the browser's session outside the ANM app, in the same browser session?


MichaelG
User
Posts: 1160

Post by MichaelG »

It is not a simple task to look at the ASP.NET Core authentication cookie / session. You may want to google for "check ASP.NET Core session or cookie from external application" for solutions.


Post Reply