As for what you save in cookies, it's always best to store as little as possible to prevent problems with data loss. Basically, you should create a sessionID that is a hash of several factors (you don't want to use just IP alone, for example), and set that as the only item in the cookie. Use a database for tracking the current order session, and make sure to include code that will invalid that sessionID after a long enough time that a user will no longer be shopping on your site (30 minutes is the lowest you'd want to go with this).
-----------------------------------------------------
Dr. Michael K. Neylon - mneylon-pm@masemware.com
||
"You've left the lens cap of your mind on again, Pinky" - The Brain
"I can see my house from here!"
It's not what you know, but knowing how to find it if you don't know that's important
In reply to Re: Crumbling Cookies, Passed Page Values, and File Handling
by Masem
in thread Crumbling Cookies, Passed Page Values, and File Handling
by chaoticset
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |