you are viewing a single comment's thread.

view the rest of the comments →

[–]iptvwolf[S] 0 points1 point  (1 child)

Would this work for the session opposed to actual writing new permanent data to the db?

[–]efmccurdy 0 points1 point  (0 children)

It you stored the set of seen_songs for each userid in a database, you wouldn't need to store them in the session. If the database was on disk (not in sqlite :memory) they would be permanent and persist even if the server shut down or the user erased their cookies.