Topic awaiting preservation: Cookies or Sessions for a shoppnig cart? (Page 1 of 1) |
|
---|---|
Bipolar (III) Inmate From: Australia |
posted 08-04-2004 01:09
Thinking about it i would probably use sessions to handle a shopping cart for a user, because i dont really want their selections saved if they have closed the browser. |
Maniac (V) Mad Scientist From: Rochester, New York, USA |
posted 08-04-2004 06:38
For any ecommerce operation you will want to handle as much on the server side as possibe. The less data the client has to save the better and more secure your site will be. You will find that most largish ecommerce sites use a Java based solution as the user's thread exists until the user is gone. |
Bipolar (III) Inmate From: Australia |
posted 08-04-2004 10:55
Oh ok, that sounds good too me. I *thought* they were generally done as u can fill your cart until you close your browser kinda thing i.e sessions.. |
Paranoid (IV) Inmate From: Sthlm, Sweden |
posted 08-04-2004 12:23
What I did in the latest project was to skip the session/cookies for the shoppingcart and managed it through the db. |
Bipolar (III) Inmate From: Australia |
posted 08-04-2004 13:22
Thanks for that, clears some things up - i thought that could be a problem with the ips. |
Maniac (V) Mad Scientist From: Rochester, New York, USA |
posted 08-04-2004 18:30
I was speaking of Java as the server side language that would be used. Java tends to be used on larger sites because it is easier to scale and tends to be very very fast. You can however do it with any of the other languages, such as PHP in your case. |
Neurotic (0) Inmate Newly admitted From: |
posted 09-08-2004 09:57
Hello! |
Maniac (V) Inmate From: Sthlm, Sweden |
posted 09-08-2004 13:45
Delete old carts if stored in db... quote:
|