Stale sessions

Stelio Gouveia stelio at
Mon Jun 12 11:18:39 CEST 2006

Im using the following configuration to handle sessions

#  Session database, used for checking Simultaneous-Use. Either the radutmp
#  or rlm_sql module can handle this.
#  The rlm_sql module is *much* faster
session {
    #  See "Simultaneous Use Checking Querie" in sql.conf

My problem is that im getting Access-Reject packet every now and then
(My users are logging in and out correctly... and my NASes are all up
and functioning)
According to this thread
- radutmp must be enabled
I have noticed that you cant rely on the sql method, even thou there is
a simul_count_query! In my case when i encounter a stale session i set
the AcctStopTime = AcctStartTime + AcctSessionTime. Although this seems
to work most of the time, its not fool proof as can be seen in this case
My question is why cant you rely on only the sql method? And what is the
correct method to clean stale session when using the sql session handling?

More information about the Freeradius-Users mailing list