LoginStatus login not working on main page

Logging out LoginStatus does not fire any event if used on the master page or the page containing the master page


source to share

1 answer

Sure! Start a session when the user is logged in. In the code for the main page, in Page_load, you simply put something like this

if ((Session ["UserID"]! = null) || (Session ["IsAdmin"]! = null))
  your actions ...

This is what I used for the login panel, which detects if the logged in user is an administrator.



All Articles