title: How to keep with value along time?
body: <blockquote>
    <p>I have my task to check on the login user on operating system as I
    collect some details about him as username</p>
    
    <p>I had my code well and it worked well .</p>
    
    <p>But my issue is to keep with the logged user through all pages without
    checking with the logged user in each page .As I check on user at
    Master page , also when I tought about session but session have timout
    .</p>
  </blockquote>
  
  <p>Master page </p>
  
  <pre><code> private void checkUser()
  {
  
          DirectorySearcher searcher = new DirectorySearcher();
          searcher.SearchScope = SearchScope.Subtree;
          searcher.Filter = string.Format(CultureInfo.InvariantCulture,               "(sAMAccountName={0})", Environment.UserName);
          //SearchResult findUser = searcher.FindOne();
          foreach (SearchResult findUser in searcher.FindAll())
          {
              if (findUser != null)
              {
                  DirectoryEntry user = findUser.GetDirectoryEntry();
                  LoggedUser = user.Properties["displayName"].Value.ToString();
              }
          }
  }
  </code></pre>