I'm currently developing a website with multiple users. I tested logging in the other users in incognito and after a few seconds some of them automatically logs out. When using only 1 user the website doesn't logs out and working fine. I'm using
I already changed the SESSION_DRIVER
in to database in the .env
file but still logging out occurs. Do you know any explanation about this? Thank you.
public function grant_auth($name,$section) { $data_auth = [ 'name' => $name, ]; if(Auth::attempt($data_auth)) { Session::put('section',$section); Session::save(); return Redirect::route('dashboard'); } else return Redirect::to('login'); }
Im granting authentication using this code. I didn't use php artisan make:auth
.
没有评论:
发表评论