dear Savers 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 sqlcounter sql_session_timeout_never { sql_module_instance = sql counter_name = Max-All-Session-Time check_name = Max-All-Session reply_name = Session-Timeout key = User-Name reset = never query = "\ SELECT IFNULL(SUM(AcctSessionTime),0) \ FROM radacct \ WHERE UserName='%{${key}}'" } I must set reset = ? thanks , all
On Dec 11, 2022, at 2:49 PM, mohamed almeshal <mohammed.almeshal@hotmail.com> 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.
participants (2)
-
Alan DeKok -
mohamed almeshal