Use AC+FIT AP networking, portal authentication.
How to configure the portal user automatic logout function?
By configuring the automatic logout function for wireless Portal users, the Portal user on the wireless client will be automatically logged out when the wireless connection is disconnected.
Reference process analysis