reset sql counter every time user logged in

Alan DeKok aland at
Sun Dec 11 20:35:22 UTC 2022

On Dec 11, 2022, at 2:49 PM, mohamed almeshal <mohammed.almeshal at> wrote:
> I'm in middle of missy code , I need to expire the session every time the user is logged in , I do all my best but I found that best
> way is to set max-all-session for the session and that will exipre the session every time and regenerate new session id ,
> now my question is how to reset the sql counter every time the user is logged in

  You will need to do it manually via an SQL query.  There's no FreeRADIUS configuration for this.

  I'm not clear why you would configure session counting, and then ignore it?  Why not just *don't* do session counting?

  You can set a Session-Timeout attribute manually, which will enforce a limit for a particular session.

  Alan DeKok.

More information about the Freeradius-Users mailing list