Using session id to identify users

Поделиться
HTML-код
  • Опубликовано: 29 окт 2024

Комментарии • 4

  • @ledockol
    @ledockol 8 месяцев назад +4

    Thanks Chris for sharing this advanced Ruby on Rails programming technique.
    Looking forward to more examples like this in future videos?
    Also, I thought it would be useful to add a background task that periodically, say once a week, removes from the database all cart_item records that don't have an associated user. Keeping these records for a long time only clutters up the database.

    • @typefastco
      @typefastco  8 месяцев назад +2

      Yep, of course. Will be adding that eventually.

  • @ijazkhan3335
    @ijazkhan3335 7 месяцев назад +1

    Now this is an interesting problem to solve. I solved it in dotnet a while back using similar technique. Good to know.

  • @EnjoytheMents
    @EnjoytheMents 8 месяцев назад +1

    Had same problem also solved it like this. Also used devise guest gem to transfer guest user objects. Can recommend