Q:

Is storing too much data in sessions good in Laravel PHP?

I'm working on a project where I'm building a web app using Laravel 5.4.
I'm storing 6 String values in Sessions which gets destroyed after 5 minutes and 2 arrays each having 5-6 string fields which are being destroyed when user logs out or after 30 minutes.
Is this data considered too much for a Session? I'm going to use a VPS for hosting.
Can you guys please suggest me what should i do? Do i keep it this way or change something.
My sessions are currently stored in a file and would it benefit me if i store it in Database?
Please help me I'm a noobie.
Thanks in Advance :) Your guys are really helpful :)

A:

i guess storing that much data is fine. Since you have mentioned it that it will expire in 5 or so minutes. I would also recommend to use redis or memcached for session handling. You can read the documentation here.

