Global Shared functions, shared variables

  • Thread starter Thread starter Imran Aziz
  • Start date Start date
I

Imran Aziz

Hello All,
How can I create a Global shared function that automatically gets shared
in all ASP.net files. The issue is that when a user comes to the site I am
creating, I check if the user is valid and based on that add session data,
but the problem is that this is in a user control , that gets fired after
the main page contents have been called, hence the session variables are not
found, for the first time. How can I set these session variables in a global
function so that it gets included in all ask files. I am using windows
authentication, so any help related to that will be great. Thanks a lot.
Imran.
 
I'm not sure what you mean, but in the global.asax codebehind, you will
see several events where you can place your code (e.g. Session_Start,
....)
 
Back
Top