Welcome Guest, Not a member yet? Register   Sign In
How much is too much session data?
#10

(This post was last modified: 07-10-2017, 07:24 AM by spjonez.)

Generally I try to avoid using session data except where necessary;

1. Session identifier
2. Flash data
3. Temporary data

Shopping carts are an interesting example of where storing them in the DB can be preferred. If you generate a fingerprint for an anonymous user and store their cart using that fingerprint (or their ID if they're signed in), if they return to your site you can preload their cart with the items they had selected. You can also query your temp carts to see what items people are adding and abandoning.

You could store that in cookies but personally I've found them unreliable so I avoid using them. And you can't query abandonment.
Reply


Messages In This Thread
How much is too much session data? - by PaulD - 07-07-2017, 09:32 AM
RE: How much is too much session data? - by PaulD - 07-07-2017, 12:08 PM
RE: How much is too much session data? - by PaulD - 07-08-2017, 02:21 AM
RE: How much is too much session data? - by spjonez - 07-10-2017, 07:23 AM
RE: How much is too much session data? - by PaulD - 07-10-2017, 10:31 AM



Theme © iAndrew 2016 - Forum software by © MyBB