Hi, Guy I really need an expert opinion on this, I have tried all and the only thing that works for me is this
Global.asax
- //-This works fine for now, the class(UserIsValidated) only fires while log-in, when log-off or when downloading a .PDF file.
- if (HttpContext.Current != null && HttpContext.Current.Items.Count>0)
- {
- //- This is a class that validate authenticate user.
- if (!UserIsValidated)
- {
- //- Validate the user here, done validated do not fire anymore
- }
- }
UserIsValidated do not fire any more, as of now it is only firing when user is loging in for authentication, when the user is loging out of the application and when the user request a file for download.
My question is, is there a better approach for the class {UserIsValidated} only firing when the user is authenticating his/her login access?
I do not like my application to have lots of working threads.
TIA
Jose
Replies
Know the answer? Post it — somebody with the same question will find it here.