Support the ongoing development of →
Security Session Database
Last updated 1 year ago.

I'd say it depends how you want to save the data.

If you want them to be able to come back the next day with their cart still filled use a cookie, else a session would be wise. Keep in mind that if you decide you go for a cookie that a shared computer remembers the data so others would be able to see what's in the cart if they visit the website too.

I myself would recommend a session in this case.

I don't know much about the actual data transfer for sessions and am unsure if it would be wise to have such lenght on a session.

Last updated 1 year ago.

Sign in to participate in this thread!


Your banner here too?

futureFry futurefry Joined 4 Mar 2014


We'd like to thank these amazing companies for supporting us

Your logo here?

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 - All rights reserved.