Re: ASP Cookies vs. ASP Session variables

by =?iso-8859-1?Q?St=E9phane?= Bergeron <stephberg(at)videotron.ca>

 Date:  Wed, 08 Nov 2000 06:17:20 -0500
 To:  hwg-techniques(at)hwg.org
 In-Reply-To:  hotmail
  todo: View Thread, Original
At 08:52 AM 08/11/00 +0000, you wrote:
>As far as I know, ASP sessions use cookies....

Yup they do.  To implement sessions, ASP stores a temporary cookie in the=20
browser containing the SessionID.  If the browser remains opened too long=20
without activity, the session may time out on the server before the cookie=
=20
expires on the browser but as soon as the browser closes the session ends.=
=20
It's much better IMO than storing a number of cookies on the client and=20
Session variables are much better performance wise too.  One could of=20
course store one UserID cookie on the client to recognize him/her between=20
sessions, or some kind of login system could be implemented but the bulk of=
=20
the data should be stored in a database on the server and state should be=20
kept using session variables (which use one temp cookie only).

HTH!

St=E9phane Bergeron

HWG hwg-techniques mailing list archives, maintained by Webmasters @ IWA