C++ Server Pages definitions
 |
There are several C++ definitions ( "#define" ) that enhance the functionality of C++ Server Pages.
These definitions must be used in the Global Scope Section of your .csp script.
- #define CSP_SESSION
Allows the use of the intrinsic object Session in the script. If CSP_SESSION is not defined in a certain script, the Session object is not available in the context of that script, resulting to less overhead processing and optimized performance.
- #define CSP_MODULE_TIMEOUT xxx
Specifies the module timeout, where xxx is the amount of time, in minutes, that the script will stay loaded in memory since the last hit. Also, in place of xxx you can use UNLOAD_IMMEDIATELY, if you wish the script to be unloaded immediately after every hit, or DO_NOT_UNLOAD if you wish the script to stay always in memory.
By using this definition, you override the default module timeout, set by the CSP Control Console.
- #define CSP_STATIC_PAGE
By using this definition, when a CSP script is called, it's output is converted to a static page file, rather than being sent directly to the client. The static page file has the same filename as the script, but with a ".html" extension.
|
|