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

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

$uri = $_SERVER['REQUEST_URI'];
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 http://forumsarchive.laravel.io/viewtopic.php?id=999 btw.

Any tips on making this solution better are very welcome!

Jeroen

Last updated 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

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.