How To Access Session and Application Variables from Within a Visual Basic Component (230149)
The information in this article applies to:
- Microsoft Active Server Pages, when used with:
- Microsoft Internet Information Server 4.0
- Microsoft Visual Basic Learning Edition for Windows 5.0
- Microsoft Visual Basic Learning Edition for Windows 6.0
- Microsoft Visual Basic Professional Edition for Windows 5.0
- Microsoft Visual Basic Professional Edition for Windows 6.0
- Microsoft Visual Basic Enterprise Edition for Windows 5.0
- Microsoft Visual Basic Enterprise Edition for Windows 6.0
This article was previously published under Q230149 SUMMARY
This article demonstrates how to access the session and application variables declared in your Active Server Pages (ASP) page from within a Visual Basic component.
A common scenario is reading user ID and passwords stored in session variables from within a component to avoid passing them as parameters. Note that your application becomes more scalable by avoiding state in Session (see the REFERENCES section in this article for more information). With this in mind, stress test your application before you move you application from development to production.
REFERENCESFor additional information, click the article numbers below
to view the articles in the Microsoft Knowledge Base:
175167 How To Persisting Values Without Sessions
231282 INFO: Stress Tools to Test Your Web Server
244457 How To Debug an MTS Visual Basic Component Running Under ASP
Modification Type: | Minor | Last Reviewed: | 6/29/2004 |
---|
Keywords: | kbASPObj kbCodeSnippet kbhowto KB230149 |
---|
|