hotspot auto relogin after logout

good day guys how do you have script on how to relogin user account in hotspot after logging out. this is to solve the issue of manually entering hotspotIP/logout in hotspot then the user will be logged out while the uptime limit will be paused. the problem on manual logged out the user can used his/her uptime limit for let say the time limit is for 1 day, the user can use his code for 2 or more days continuing his time left by simply manually logging out from the hotspot.