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.
Session and application variables are an important part of ASP programming. Whether it's developing simple hit counters or developing advanced chat servers, session and application variables are a must have feature of many applications.
In this article we are going to learn:
How session and application variables work
What the benefits are of using session and application variables
Which events are available to both session and application variables
How we implement session and application variables
The global.asa file and the standard events in global.asa
How to maintain a client state using cookies
To understand the concepts that I'm about to explain, you will need the following:
A web server (IIS or PWS) capable of running ASP scripts
Basic knowledge of ASP
By the end of this article you will have a thorough understanding of sessions, application variables and cookies, and will be fully prepared to start using them in your applications.