public object in the Global ASCX file


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: public object in the Global ASCX file

  1. #1
    Join Date
    Feb 2004
    Posts
    111

    public object in the Global ASCX file

    How long will an object in the Global ASCX file persist? For the life of the application?

    Laurence -

  2. #2
    Join Date
    Nov 2003
    Location
    Portland, OR
    Posts
    8,387
    Do you mean Global.asax? Web applications are stateless; the Global class gets re-instantiated on every request. You may store data in the Application object if you want it to exist for the life of the app, or in the Session object if you want it to exist for the duration of an individual user session.
    Phil Weber
    http://www.philweber.com

    Please post questions to the forums, where others may benefit.
    I do not offer free assistance by e-mail. Thank you!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center