codeigniter 4 about login

I want to create a login system in Codeigniter 4 like this so when the user has logged in on 1 browser / other device, and tries to log back in on another browser / other device then for the first login he will be logged out automatically

examples like this I log in to the Mozilla browser and I try to log in again in the Chrome browser, then when I log in again in the Chrome browser my login in the Mozilla browser will log out