Click to See Complete Forum and Search --> : Session State


JoeyD
12-17-2005, 12:18 PM
I am building a web store for motorcycle accessories and I was wondering what would be the best thing to use for storing the users purchases. Currently I am storing them in sessions running as a StateServer. I have read that this isn't always a good thing and that a user can loose there items if they post back to a different server. I asked my web server if they allowed for sqlserver sessions and they don't have it set up. Any suggestions or comments? Any help or feedback is appreciated

JoeyD :)

Cipher
12-17-2005, 12:50 PM
I faced same problem before while creating a shopping cart, and best thing to use is to store your data in DataBase Table, create a new table and add items into it while the user is purchasing.

JoeyD
12-17-2005, 08:43 PM
Cipher,

First, thank you for responding to most of my posts. I like the ID of build a Cart in sql for shoppers but my next question is how do you keep the carts sorted by user. I have a table made for my cart and I placed a IDentifier field in it. I started an on session_start routine to produce a unique ID and check to make sure it isn't in use. However, how do I keep that ID with the user on every page they navigate through. I thought of hidden fileds but how does this work for navigation links?

Cipher
12-18-2005, 04:14 AM
Hey why dont you make the user register first before he make any purchases, i think you should keep a record of users who purchase from your site, you should make them register first, and so, every user will have his ID, and you can retrieve it when the user login in the site.