![]() Topic awaiting preservation: Cookies or Sessions for a shoppnig cart? (Page 1 of 1) |
|
---|---|
Bipolar (III) Inmate From: Australia |
![]() 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 |
![]() 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 |
![]() 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 |
![]() 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 |
![]() 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 |
![]() 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: |
![]() Hello! |
Maniac (V) Inmate From: Sthlm, Sweden |
![]() Delete old carts if stored in db... quote:
|