Laravel - destroy existing sessions on login

后端 未结 4 1056
臣服心动
臣服心动 2021-01-14 15:14

Is there a way to check if a user already has a valid session on a different machine?

What I want to do is when a user logs in, destroy an other sessions which they

4条回答
  •  独厮守ぢ
    2021-01-14 15:39

    I hope you will see this job:

    Session::regenerate(true);
    

    a new session_id be obtained.

提交回复
热议问题