-
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 -
-
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
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks