Removing expired userman users from active user in hotspot

I noticed that some of the expired user created from Userman if they still have not reach keepalive or idle timeout criteria in Hotspot setting, those users still have internet access although their accounts have already been expired. For example, “user1234” were created from User manager with 10days validity after 1st login. If idle timeout is set to 1 day and user keep using “user1234” making idle time not reach timeout yet. Then on day 10th or 11th or so on (after expiry date of “user1234”), I noticed that “user1234” still able to get internet access. However, if the user logout and login again with “user1234” the user cannot login anymore showing “No valid profile found”

Well…the workaround might be playing around with keepalive and idle timeout number. However, I want to leave that number as it is, but want to know if there is any script to remove Active users from Hotspot if those users has already been expired in Userman

Please take a look at screen shot might help to understand what I mean better. Sorry for my bad English
Userman.png
Hotspot.png

you are using mac-cookie , so you can set session timeout in your hotspot user profile like 01:00:00 “1hour”
it will out user form active every 1 hour and he will login again by mac-cookie without feel anything
and if user has already been expired in userman , he cant login