Members

Technology Zones

IBM Learning Center

Articles

Hosted By

MaximumASP

Info

Rated
Read 43,293 times

Contents

Related Categories

When Session Variables Go Bad - Introduction

LACanadian

Introduction

So you've heard the stories about how bad it is to use Session variables in an ASP application. In the newgroups, one of the more frequent topics deals with the saving of state in a Web application. Specifically, comparing the ease of use and speed of Session variables versus the overhead of using a database or the awkwardness of hidden fields or query strings. Unfortunately, the simplicity of Session variables comes at the cost of scalability. But is that enough of a reason to ignore them completely? The purpose of the article is to examine the pros and cons of Session variables and provide suggestions that you can apply to your own situation.

I am the owner of a small application development consulting company that specialized in the design and implementation of Internet-based applications. While there are others who can make a web site look good, our expertise is in making the site function. This includes infrastructure design, database design and administration, software development and deployment. For the most part, we utilize Microsoft-based languages and tools. And we are skilled enough to have generated two patent applications for our clients.

Comments

  • Give Alternative for Session

    Posted by arshad3108 on 14 Jan 2004

    Hi Bruce,
    Your Article is informative, but you [b]missed the core point [/b] in explaining what will be the Alternative for Session variables in a Distributed Server Environment. I have used sessio...

  • xml?

    Posted by ark2000 on 23 Jan 2003

    for tker

    Could you point us to some examples? That sounds like a good challange!

  • Posted by MarioF on 04 Sep 2002

    [quote][1]Posted by [b]Nigorr[/b] on 27 Apr 2002 02:53 AM[/1]
    So what should we all be using instead. If we can't use cookies, because essientially seesion things use cookies how are you suppose to ...

  • Re: What to Use Instead

    Posted by LACanadian on 08 May 2002

    Whenever I have created a high-traffic, browser-neutral site, I have maintained session information stored in a database. In other words, when a user logs into the site, they are assigned a 32-charac...

  • Why not use XML?

    Posted by tker on 05 May 2002

    In response to the question of what to use instead, is there any reason not to use XML files (identified via a querystring of the filename) that are stored on the server to track user state? We've bee...