Is programming your own shopping cart mechanism in php too risky or potentially too insecure? It does not seem to be something that, with proper time and research, should be too difficult to accomplish.
These are some of the steps I would take.
1) use ssl (obviously)
2) query for prices at from database into application at checkout
3) store minimal personal info in sessions...user id, browser info (to help prevent session highjacking), unique session password generated at login (again to protect session integrity), product info (may limit to product id's if queries to database do not require too much overhead)
4) encrypt passwords with sha1(), use mcrypt functions of encrypt all personal information in the database (must research use of mcrypt functions, any good books/links would be appreciated)
5)personal information will decrypted at runtime in the application on
6) have found a script that uses memory tables to replace php's native sessions, preventing info from being readable to anyone on host. Once I have looked through it I will decide whether or not it's secure enough.
that is all I have so far. I have some experience programming such as developing user accounts, but I have yet to deploy one on an actual site (one that is in development right now should be ready within a month).