Page Urls; Session Status And Properties - Colubris Networks CN3000 Administrator's Manual

Table of Contents

Advertisement

Chapter 6 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Customizing the public access interface - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Chapter 6
The NAS ID and NAS address are required when the customer is redirected back to the
CN3000 after registration. The code on the registration web page would look something
like this:
// Registering user information in the backend database
RegisterUser($username,
$firstname,
$lastname,
$company,
$title,
$phone,
$email,
$NASid,
$NASip
);
// set URL to redirect browser to
$targetURL = "location: https://
" . $NASip . ":8090/goform/HtmlLoginRequest?
username=" . $username . "&password=" . $password;
// When done
header($targetURL);
The target URL is built using the NAS IP and username and password. The form name
is hard-coded.

Page URLs

GetSessionUrl()
Returns the URL of the Session page.
GetWelcomeUrl()
Returns the URL of the Welcome page.
GetFailRetryUrl()
Returns the URL of the next internal page to display as follows:
• Returns the Fail page URL if a login or logout request is currently pending.
• Returns the Transport page URL if the customer is already logged in.
This function is designed to be used in conjunction with IsRequestPending().
GetOriginalUrl()
Returns the URL the customer tried to access before being redirected to the Login
page.
Session status
IsRequestPending()
and properties
Returns 'yes' if a login or logout request is already pending for the current customer.
This function is useful when a RADIUS server is slow to respond and a customer
repeatedly clicks the login or logout buttons. For example, consider the following code
which could be used to modify the Fail page to address this problem.
function loading()
if ("<% IsLoggedIn(); %>" == "yes") //logout is pending, so refresh page
refresh();
else
{
if ("<% IsRequestPending(); %>" == "yes")
setTimeout('refresh()',3000);
else //no login or logout is pending and customer is logged out
document.form1.close.value = "Close window"; //change button label
}
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 130 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
// identifies the CN3000 the customer is connected to
//called when the fail page is first loaded
// customer is already logged out or a login is currently pending
// (i.e., customer clicked login button twice

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents