137k views
1 vote
Why is the stateless nature of the internet a problem for shopping cart software? g?

2 Answers

5 votes
Web applications should be understood to be stateless unless there is a good reason to be stateful. By design, a shopping cart is a stateful feature and not accepting it as stateful could be quite counter-productive. The whole point here of a shopping cart is to preserve the state nature of the application between requests.
In other words, the stateless nature of a shopping cart means it does need to care about who I am or what orders I have placed and this might end up being a problem. It will not be able to maintain a shopping cart full of goods.
User Ishant Kaushik
by
7.4k points
3 votes
In a stateless connection, each transmission is independent, no continuous connection is maintained. Stateless system is a problem for shopping cart software because it does not keep information from one transmission or session to another, thus shopping cart must store information about specific shoppers and their purchases.
User Karol Dabrowski
by
8.0k points

Related questions

asked Nov 8, 2024 177k views
IInspectable asked Nov 8, 2024
by IInspectable
8.2k points
1 answer
3 votes
177k views
asked Apr 22, 2024 220k views
Steve Boyd asked Apr 22, 2024
by Steve Boyd
8.7k points
1 answer
2 votes
220k views