Support the ongoing development of Laravel.io →
Session Architecture

How and where would you store that? I'm using a Redis based session storage for my Laravel based locale adverts page. I'd have considered storing an array in each session which store the IDs of the viewed articles. Whenever somebody views a nice article, it is pushed at the front of this array and when the array is longer then N, the last element is dropped. However, I'm not sure if this is the most efficient way to store that. How do you store these things?

Last updated 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

hohl hohl Joined 12 Jan 2016

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.