Home arrow ASP arrow Session Replacement in ASP

Session Replacement in ASP

An alternative to using ASP's session object is to build your own using a database. In this article Rogier shows us how...

Author Info:
By: Rogier Doekes
Rating: 5 stars5 stars5 stars5 stars5 stars / 65
June 18, 2003
  1. · Session Replacement in ASP
  2. · Creating the Database
  3. · Session Check
  4. · The Login Page
  5. · Conclusion

print this article

Session Replacement in ASP
(Page 1 of 5 )

In my opinion the session was a gift from to the development community. I really like the many things you can do with it. I find it especially handy when I develop a webapplication for which a login area is required. All the pages in the application can only be accessed by people who have proper authorization, otherwise the user is redirected to a login page. Itís simple, itís neat, however... it cannot be used in all circumstances.

For example, consider a company that owns a load balanced web farm consisting of multiple IIS web servers. It is not advisable to use sessions here. Also consider those poor souls who do not like cookies... sessions will not work for them either.

This article describes a workaround.  Since I do not start developing without first getting my hands on a database, it is very much database driven. I use SQL server as the database, complete with stored procedures.

In this article I will start with the database and work my way to the ASP code you need. I try to keep it simple. The ASP code is only for a home page, for which you need access and a login  page which handles the login procedure.

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-2019 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap
Popular Web Development Topics
All Web Development Tutorials