Library tutorials & articles

Implementing Session Tracking

Introduction

This article explains how to implement session tracking using two of the simplest & oldest methods available to programmers. I feel that in order to understand the beauty of new technologies that exist today it is often necessary to understand what used to be done before that technology came into being. The techniques presented in this article do not use the new technologies present to implement session tracking, but use some old, tried and tested ways which are extremely popular even today. After reading this article you would be able to implement session tracking using any language, since you would understand the concepts of session tracking rather than some language dependent implementation of session tracking.

Various languages provide higher level API for implementing session tracking. There is a detailed session tracking API available in Java which enables many programmers to get session tracking implemented quickly and easily. But that is not what this article talks about. It focuses on understanding the basic techniques so that you can use it with any language.

To understand this article you need to know 3 things -
1. Familiarity with any server side technology such as JSP, ASP, Java servlets, etc.
2. You need to know HTML very well.
3. You need to know how to access the contents of a HTML Form from within a programming language such as JSP, ASP, etc.

Comments

  1. 21 Feb 2003 at 06:42

    In this article the author describes 2 mechanisms for session tracking. The first of these - hidden form fields is dismissed for those implementers who do not want their hidden field data to be seen by users looking at the page text. It is regarded as inferior to URL re-writing to which the author specifies a preference. So just how is the displaying of a URL in the Address box of browser with all that same information appended to it any better at 'hiding' this data? Considerably worse, I'd say !

  2. 01 Jan 1999 at 00:00

    This thread is for discussions of Implementing Session Tracking.

Leave a comment

Sign in or Join us (it's free).

AddThis

Related discussion

Related podcasts

  • Top Web Design Mistakes

    Pete LePage is Product Manager of Internet Explorer Developer Division and he doesn’t want your web site to stink. Sharing from his talk given at TechEd 2008, Pete highlights 10 common web design mistakes and tells you how you can bypass the same blunders. Pete also tells us how future features o...

Events coming up

  • Jun 16

    Code Generation 2009

    Cambridge, United Kingdom

    A developer event with a practical focus on helping people get to grips with code generation tools and technologies.