Colubris Networks CN3000 Administrator's Manual page 131

Table of Contents

Advertisement

Chapter 6 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Customizing the public access interface - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Chapter 6
}
function refresh()
{document.location="<%GetFailRetryUrl();%>"; }
IsLoggedIn()
Returns "yes" if the customer is logged in. See IsRequestPending() for an example that
shows how to use this function.
GetSessionStateMessage()
Returns a message (from message.txt) indicating the status of the customer session.
GetUserName()
Returns the username for the current customer.
GetMaxSessionTime()
Returns the total amount of connection time configured for the current customer session
in minutes and seconds in the format: mm:ss.
GetMaxSessionTimeHMS()
Returns the total amount of connection time configured for the current customer 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 customer in the
specified unit.
For example if the customer account is configured for 5000 seconds, then:
• ConvertSessionTime("y") returns 0, calculated as (5000 / (365*24 *60*60)).
• ConvertSessionTime("d") returns 0, calculated as (5000 / (24*60*60)).
• ConvertSessionTime("h") returns 1, calculated as (5000 / (60*60)).
• ConvertSessionTime("m") returns 83, calculated as (5000 / 60).
• ConvertSessionTime("s") returns 5000, calculated as (5000 / 1).
TruncateMaxSessionTime(unit)
Returns the total amount of connection time configured for the current customer
truncated to the specified unit.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 131 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
// refresh the Fail page
y
Years
d
Days
h
Hours
m
Minutes
s
Seconds
y
Years
d
Days

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents