Do Not Use Session Variables Unless Necessary
Sessions should be avoided. Alternatives to Session variables are hidden tags in
forms, cookies, and the use of querystrings.
Sessions can fail when certain proxy servers are used. If your clients will
visit the site via a proxy server the pages should be tested using that proxy
server. Sometimes this cannot be done since many ISP's send their customers t
hrough their own proxy server.
Bookmarking can be a problem if session variables are used. Be sure to code for
bookmarked pages if the page needs prior information.
Since sessions have thread affinity they have processor affinity. Once a
session is attached to a specific CPU, CPU utilization can become unbalanced.
This defeats the load balancing provided by IIS. Sessions use resources such
as memory. The more variables implanted into sessions the more memory required
for your site.
|