Working with RADIUS attributes
Public access interface ASP functions and variables
15-83
GetMaxSessionTimeHMS()
Returns the total amount of connection time configured for the current user session in hours,
minutes and seconds in the format: hh:mm:ss.
ConvertMaxSessionTime(unit)
Returns the total amount of connection time configured for the current user in the specified
unit.
For example if the user account is configured for 5000 seconds, then:
ConvertMaxSessionTime(“y”) returns 0, calculated as (5000 / (365*24 *60*60)).
ConvertMaxSessionTime(“d”) returns 0, calculated as (5000 / (24*60*60)).
ConvertMaxSessionTime(“h”) returns 1, calculated as (5000 / (60*60)).
ConvertMaxSessionTime(“m”) returns 83, calculated as (5000 / 60).
ConvertMaxSessionTime(“s”) returns 5000, calculated as (5000 / 1).
TruncateMaxSessionTime(unit)
Returns the total amount of connection time configured for the current user truncated to the
specified unit.
For example if the user account is configured for 5000 seconds, then:
TruncateSessionTime("y") returns 0.
TruncateSessionTime("d") returns 0.
TruncateSessionTime("h") returns 1.
TruncateSessionTime("m") returns 23.
TruncateSessionTime("s") returns 20.
yYears
dDays
h Hours
m Minutes
s Seconds
yYears
dDays
h Hours
m Minutes
s Seconds