Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Where to store these values?

 
Hussein Baghdadi
clojure forum advocate
Bartender
Posts: 3479
Clojure Mac Objective C
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi.
In my all views pages, I want to render a list of the last five viewed items no matter if the user is guest or logged in user (you know, like Amazon).
Where to store those five items (I'm thinking to store title and an id for each item)?
They could be stored in a session context but it looks to me overkill (may be the visitor will view two items and then closes his browser, why to wait for session time out)?
Do you suggest any technique?
Thanks for help and time.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic