Home arrow ASP arrow Page 5 - Maintaining Session State With ASP

Maintaining Session State With ASP

Sessions and cookies can be used to persist visitor information. In this article Himanshu shows us how to main session state with ASP using a combination of cookies, sessions and the global.asa file.

Author Info:
By: Himanshu Khatri
Rating: 5 stars5 stars5 stars5 stars5 stars / 82
August 30, 2002
  1. · Maintaining Session State With ASP
  2. · The Session Object
  3. · The Application Object
  4. · The Global.asa File
  5. · Conclusion

print this article

Maintaining Session State With ASP - Conclusion
(Page 5 of 5 )

In this article we've seen how to effectively use the session and application objects, the global.asa file, as well as cookies. Here's a quick list of tips to recap what we've just learnt:
  • An application object is used to share information among all the users of a specific web site.
  • The start and end of the application can be controlled using the Application_OnStart and Application_OnEnd events in the global.asa file.
  • A session object is used to store the information needed for a particular user in a session. The variables stored in a session object are not discarded when the user switches between pages. These variables remain valid for the entire session.
  • The start and end of the session can be controlled using the Session_OnStart and Session_OnEnd events in the global.asa file.
  • You can use the cookies collection of the response object to store client state information. You can use the request object to retrieve the client state information from the cookies.
If you're just starting out with ASP and would like more help with anything in this article then please visit our ASP forums. Our community members will be more than willing to answer any questions that you may have.
DISCLAIMER: The content provided in this article is not warranted or guaranteed by Developer Shed, Inc. The content provided is intended for entertainment and/or educational purposes in order to introduce to the reader key ideas, concepts, and/or product reviews. As such it is incumbent upon the reader to employ real-world tactics for security and implementation of best practices. We are not liable for any negative consequences that may result from implementing any information covered in our articles or tutorials. If this is a hardware review, it is not recommended to open and/or modify your hardware.

blog comments powered by Disqus

- Central Scoreboard with Flash and ASP
- Calorie Counter Using WAP and ASP
- Creating PGP-Encrypted E-Mails Using ASP
- Be My Guest in ASP
- Session Replacement in ASP
- Securing ASP Data Access Credentials Using t...
- The Not So Ordinary Address Book
- Adding and Displaying Data Easily via ASP an...
- Sending Email From a Form in ASP
- Adding Member Services in ASP
- Removing Unconfirmed Members
- Trapping HTTP 500.100 - Internal Server Error
- So Many Rows, So Little Time! - Case Study
- XDO: An XML Engine Class for Classic ASP
- Credit Card Fraud Prevention Using ASP and C...

Watch our Tech Videos 
Dev Articles Forums 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us 
Weekly Newsletter
Developer Updates  
Free Website Content 
Contact Us 
Site Map 
Privacy Policy 

Developer Shed Affiliates


© 2003-2018 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap
Popular Web Development Topics
All Web Development Tutorials