I am developing a small online shopping website.

My question is:

Do I still have to use session if I wont allow customers to add items to cart when they are not registered?

Meaning, once they want to order, they will have to register and login to their account

Thank you!

Recommended Answers

All 4 Replies

What is the problem with using sessions?

But to answer your question, I shouldn't think so if they cannot add items to the card (because, these will be stored within the session) so aslong as the visitor to your site can only browse and doesn't have to do anything "usery" then sessions can be kept clear, for now.

You'll obviously need to use them when the user signs in and stuff :)

i guess not because you can always add the items once they logged in
but i don't know why you would not allow people to add the item before logging
then ask them if they have a account if they don't make one i think it would be very bad to not allow the user to add items some are just going to assume you don't have the item to sell

That makes sense. Thanks!

Is this solved now? If so, mark thread as solved :)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.