2021年1月21日星期四

Laravel automatically logged out with multiple users?

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.

https://stackoverflow.com/questions/65837827/laravel-automatically-logged-out-with-multiple-users January 22, 2021 at 08:42AM

没有评论:

发表评论