Global Shared functions, shared variables

Discussion in 'ASP .Net' started by Imran Aziz, Aug 22, 2005.

  1. Imran Aziz

    Imran Aziz Guest

    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.
    Imran Aziz, Aug 22, 2005
    #1
    1. Advertising

  2. Imran Aziz

    Stefan Guest

    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,
    ....)
    Stefan, Aug 22, 2005
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Joe Fallon
    Replies:
    3
    Views:
    762
    =?Utf-8?B?Z3V5?=
    Jul 16, 2004
  2. tshad
    Replies:
    11
    Views:
    815
    tshad
    May 27, 2005
  3. Drazen Gemic
    Replies:
    5
    Views:
    5,313
    Drazen Gemic
    Oct 22, 2005
  4. Replies:
    1
    Views:
    1,268
    santosh
    Jul 15, 2008
  5. User1014
    Replies:
    3
    Views:
    187
    Richard Cornford
    Dec 1, 2006
Loading...

Share This Page