freeradius + Mikrotik

hello

i have configured freeradius with mysql everything is working fine but when i add the Simultaneous-Use :=1 for a user and the radius server turned off without proper shutdown , the user cant log in again , freeradius message was ’ you are already logged in access denied ’ , i give the Simultaneous-Use :=2 instead of 1 the user can log in , again if the radius server turned off the user cant log in until i raise the value of concurrent user sessions . is there a way to clear stale sessions for a user after a hazardous shutdown ?
any idea will be helpful

thanks all

Yes.

Run scripts on the accounting tables and close sessions which should not be open, or check the ‘checkrad’ scripts (which would also need customization) so that the radius server actually queries the nas to confirm whether or not a session is active.

i have fixed it , radzap should be executed to clean all sessions