Storing Temporary Items Without User Having to Register

Posted by Dex on Stack Overflow See other posts from Stack Overflow or by Dex
Published on 2010-03-08T09:37:19Z Indexed on 2010/03/08 9:51 UTC
Read the original article Hit count: 367

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?

© Stack Overflow or respective owner

Related posts about ruby-on-rails

Related posts about session