O'Reilly logo

ASP.NET for Web Designers by Peter Ladka

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Session State

As I mentioned at the beginning of this chapter, there were several ways to handle the state information of a user’s visit or session on your web site. All the methods had an inherent problem in one factor or another. Let’s look at a few of the problems that some of the solutions used in the past have faced.

Session Object

  • Lost data if web services were stopped and restarted

  • Not very scalable; server resources required

  • Won’t work in a web farm

  • Won’t work with user’s cookies disabled

Cookies

  • Won’t work with user’s cookies disabled

  • Hidden text boxes

  • Information is exposed to anyone that knows how to view source

  • Can be tampered with if a malicious visitor wants to

  • Work only if a user submits a form

QueryString

  • Exposed in the browser’s ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required