reset sql counter every 30 minute
Hi Is that possible to reset the sql counter every 30 minute? Basically, i need to get user free access of 20 minutes, after 20 minutes NAS will logout the user. And the user is allow to login again after 30 minute. Thanks
You can use Session-Timeout attribute in your radreply sql table like: +-----+-----------+-----------------+----+---------+-------+ | id | UserName | Attribute | op | Value | +-----+-----------+-----------------+----+---------+-------+ | | 257 | test | Session-Timeout | := | 1800 | +-----+-----------+-----------------+----+---------+-------+ Regards Bishal On Thu, Jan 27, 2011 at 1:34 PM, piston <pistonic@yahoo.com> wrote:
Hi
Is that possible to reset the sql counter every 30 minute?
Basically, i need to get user free access of 20 minutes, after 20 minutes NAS will logout the user.
And the user is allow to login again after 30 minute.
Thanks
- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
On 1/26/2011 23:49, piston wrote:
Hi
Is that possible to reset the sql counter every 30 minute?
Basically, i need to get user free access of 20 minutes, after 20 minutes NAS will logout the user.
And the user is allow to login again after 30 minute.
Thanks
- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html if nothing else you could use a script to fire an at command or cronjob for "30 minutes from now"
participants (3)
-
Bishal Pun -
Christ Schlacta -
piston