Support the ongoing development of →
Authentication Session
Last updated 1 month ago.

What I ended up doing is placing this in my index.php, just above $app->run() :

if(!in_array($uri, ['/','/about'])){
    Config::set('session.cookie','laravel_'.substr($uri, 1).'_session');

I doubt it is the best solution, but it seems to work. Based on btw.

Any tips on making this solution better are very welcome!


Last updated 1 month ago.

Sign in to participate in this thread!


Your banner here too?


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

Your logo here?

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

© 2022 - All rights reserved.