HP (Hewlett-Packard) MSM7XX Switch User Manual


 
Working with public access attributes
Public access interface ASP functions and variables
ASP variable
tax_percent: Tax rate that will be applied to all charges. The tax rate is configured on
the service controller.
Example
LoadTaxInformation();
write("Tax is " + tax_percent + "% here.");
Session information
The service controller maintains a block of data, called a session, for each IP address that is
connected to the public access interface. The session makes it possible to store and access
data across more than one page in the public access interface.
Session variables are reset when:
the ASP function ClearSessionVar() is called
the user’s session is deleted or restarted
A session ends when 3 minutes passes without any user activity on the public access
interface.
Session functions
GetSessionVar(variable)
Returns the value of the specified session variable.
ClearSessionVar(variable)
Clears the value of the specified session variable.
Session variables
The following session variables are provided:
last_login_error: Contains the error number generated by the last login attempt. This is
converted into the appropriate visual representation by the file
login_error_messages.asp.
Value Description
0 or "" No error occurred.
1 A problem occurred that caused the current login process to stop before it
completed. This is normally an issue related to an administrator changing the
configuration which may cause a temporary failure.
2 The login was refused by the product or external authentication server.
3 The external authentication server was unreachable.
9-89