Cookies and Session Variables used
The following cookies and session variables are used in the Web application:
Cookies:
- wwWebStoreUserId
The customer's user id. This cookie is permanent and sticks around. This is the only explicit cookie set in the system beside the Session Id used by ASP.Net.
This value is really optional and only used to automatically attach hte user back to his profile. Once connected the value is retrieved from the Session.
In addition the store uses Sessions so the ASP.Net session cookie is used as well unless you enable Cookieless Sessions in ASP.Net.
Session Variables:
- CustPk
Once a customer profile is accessed the CustPk session id is set and identifies the customer's pk. This is used to seed invoice data with the PK without having to force a lookup on the Customer object and is used to recycle customer Pks. - InvPk
Once a user starts adding items to the shopping cart he's assigned an invoice Pk. This Pk is carried forward and eventually used on the invoice that is placed for the final order. Also useful to check whether the user has entered any items into his shopping cart yet. - ShoppingCartItems and ShoppingCartSubTotal
Keeps track of items in the shopping cart. Updated whenever items are displayed on the ShoppingCart page. - ShippingAddressPk
Flag used during the final order process to identify if a special shipping address is used. The PK maps the shipping address stored on disk. It is discarded after the order is placed and the shipping address attached. - ShippingInfo Object
This object is used to track the users shipping options throughout the application while shopping. There's a need to keep track of this info over several requests because orders are not finalized and written to disk until the final order button is pressed. Until that point no permanent data is written and so the shipping options are carried forward from previous forms. This object contains fields for shipping location, Shipping method, whether shipping is required and more. It maps to the ShippingInfo business utility class.
© West Wind Technologies, 1996-2018 • Updated: 12/04/03
Comment or report problem with topic