Storing Temporary Items Without User Having to Register
- by Dex
I have a ruby on rails app where I want users to be able to store a list. The list is similar to a shopping cart except for the fact that they input their own items.
I would like store everything in the session, but this seems like it would get complicated and would start to take up space after a while.
The other way of doing it was to create temporary entries in the database with a "temp" flag and session id so that they could come back to it. The only problem with this is, how do I clean out stale entries?