TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Jose Saiz
1.1k
260
103.1k
Global.asax --> Application_BeginRequest
Apr 4 2018 4:52 PM
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
//-T
his 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
}
}
what I am trying to accomplish here is that when the user is authenticated that the class
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
Reply
Answers (
0
)
anyone explain this linkbutton code working step by step
Why Use "urlgen" class in Asp.net.