You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If the laravel sessions table is polymorphic, when using multiple guards and user providers, we'll be able to logout user devices per guard/user provider.
For example, the current table just features user_id column and it causes conflict when two guards of same id is logged in.
To further explain my point, if a lecturer with an id of 1 in the lectures table is logged in and a student with id of 1 is also logged in the two IDs clash on the sessions table making the deletion of other devices a hard nut to crack. I know there is delete other devices in the Auth facade. But individual deleting is very difficult to achieve.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
If the laravel sessions table is polymorphic, when using multiple guards and user providers, we'll be able to logout user devices per guard/user provider.
For example, the current table just features user_id column and it causes conflict when two guards of same id is logged in.
To further explain my point, if a lecturer with an id of 1 in the lectures table is logged in and a student with id of 1 is also logged in the two IDs clash on the sessions table making the deletion of other devices a hard nut to crack. I know there is delete other devices in the Auth facade. But individual deleting is very difficult to achieve.
Beta Was this translation helpful? Give feedback.
All reactions