Support the ongoing development of Laravel.io →
Session Cache
Last updated 2 years ago.
0

You should not be caching restricted pages on the server side, it is very insecure and a problem waiting to happen. Content caching should only really be used for somewhat static public pages.

Last updated 2 years ago.
0

willrowe said:

You should not be caching restricted pages on the server side, it is very insecure and a problem waiting to happen. Content caching should only really be used for somewhat static public pages.

These pages are not restricted, they are completely the same for logged out and logged in users. But problem is when a page is cached while a user is logged in, if you know what I mean.

Last updated 2 years ago.
0

That's still a dangerous line to walk, if you ever add user specific data down the road you could end up with a breach. Regardless, the session data should not be cached. It may be a bug with the package, maybe submit an issue to the Github repository. I've actually recently released a package for response caching in Laravel if you want to check it out and see if it does what you're looking for.

Last updated 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

alenn-m alenn-m Joined 5 Mar 2014

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.

© 2024 Laravel.io - All rights reserved.