S/Web Objects

Home S/Web Description S/Web Overview S/Web Installation S/Web Features S/Web Functions S/Web Objects S/Web Settings S/Web Troubleshoot S/Web FAQ S/Web Appendices

Cache Client Document LH Repository Request Response Server Session

Links on this page:
 

Properties

Methods

Session

This object handles information relating to the current S/WEB session

Properties:

PropertyGet/SetDescription
ENCRYPTCOOKIESGet/SetFlag indicating whether cookies are encrypted before sending back to the client
EXECUTIONTIMEGetReturns how long, in seconds, this server has been running.
FILEIDGet/SetThe ID of the request file passed to the server.
INITPROCGet/SetName of a function to call to initialize any session-specific details
LOGINDOCUMENTIDGet/SetString to insert into a document to identify it to the system as a login document so that security is not invoked. May be multi-valued to identify other documents served by S/Web that do not require security.
LOGINPROCGet/setName of a function to call to deal with login procedures
LOGINRESOURCEIDGet/SetString to use for identifying login resources during login requests
OICGIGet/SetIndicates if the server is operating in OICGI compatibility mode.
RESOURCEIDGetString to identify resource keys during requests
SECURITYPROCGet/SetName of a function to call to deal with security checks on each request
STDERRDOCGet/SetContains the name of the document to use for error reporting
STDERRMSGGet/SetContains the name of the msg to execute for error reporting
STDERRPROCGet /SetContains the name of the proc to execute for error reporting
SWAPLISTGet/Set Contains the application string swap list
TIMESTAMP  Not implemented
TRACKEXCEPTIONS Not implemented
TRACKIPS  Not implemented
TRACKREQUESTSGet/Set TRUE to track ALL requests to the WWW_REQUEST and WWW_REQUEST_CONTENT tables.
TRACKSECURITYGet/Set TRUE if we log unauthorized exceptions to the WWW_UNAUTHORIZED table
XVERSIONGet Returns the current version of S/Web

Methods:

call www_Exec_Method( "SESSION", method, param1, param2, param3, param4, param5 )

MethodDescription 
CREATEThis method creates a new session object
DESTROYThis method destroys the current session object.
EXECUTEThis method executes the actual requests
GETThis method retrieves properties of the session object
SETThis method sets properties of the session object
STDERRThis method handles standard error reporting.

[top]

CREATE method

This method creates a new session object using the Request file name passed in Param1. Should not be used by end users.

ArgumentDescription 
param1  Name of Request OS Header file.
param2  Not used.
param3  Not used.
param4  Not used. 
param5  Not used. 
param6Not used. 

This method should not be called by the end-user  and is only documented for completeness.

[top]

DESTROY method

This method destroys the current session. It effectively destroys both the REQUEST and RESPONSE objects associated with either session.

ArgumentDescription 
param1  Not used.
param2  Not used.
param3  Not used.
param4  Not used. 
param5  Not used. 
param6Not used. 

This method should not be called by the end-user  and is only documented for completeness. 

[top]

EXECUTE method

Used to process the current set of request files.

ArgumentDescription 
param1  Not used.
param2  Not used.
param3  Not used.
param4  Not used. 
param5  Not used. 
param6Not used. 

This method should not be called by the end-user  and is only documented for completeness.

[top]

GET method

This method retrieves properties of the session object

ArgumentDescription 
param1  Property to retrieve - can be @Rm delimited to retrieve multiple properties.
param2  Property values returned.
param3  Not used.
param4  Not used. 
param5  Not used. 
param6Not used. 

Example:

   declare function www_Exec_Method, www_Get_Status, www_Set_Status
   $insert www_Status_Equates
   $insert logical
   Properties  =   "OICGI"
   if www_Exec_Method( "SESSION", "GET", Properties, RetVals, "", "", "", "", errorText ) then
      OpenEngine    =  Field( RetVals, @RM, 1 )
      * Finish processing
   end else
      abort = TRUE$
   end

[top]

SET method

This method sets properties of the SESSION object.

ArgumentDescription 
param1  Properties to set, @Rm delimited
param2  Values to set, @Rm delimited
param3  Previous values returned, @Rm delimited
param4  Not used. 
param5  Not used. 
param6Not used. 

Example:

   declare function www_Exec_Method, www_Get_Status, www_Set_Status
   $insert www_Status_Equates
   $insert logical
   Properties  =   "OICGI"
   Values  =   True$
   if www_Exec_Method( "SESSION", "SET", Properties, Values, RetVals, "", "", "", errorText ) then
      * Finish processing
   end else
      abort = TRUE$
   end

[top]

STDERROR method

This method provides a standardised way of reporting errors to the client. The routine will first look for an error handling procedure, if that fails it will try to use the standard error handling document. If that fails it will try to use the standard error message and if that fails it will generate it's own error message.

ArgumentDescription 
param1  Error text to return to client.
param2  If TRUE$ ignores standard error procedures et al and just generates own error message.
param3  Not used.
param4  Not used. 
param5  Not used. 
param6Not used. 

Example:

   declare function www_Exec_Method, www_Get_Status, www_Set_Status
   $insert www_Status_Equates
   $insert logical
   ErrorText  =   "No bank records on file for you - sorry!"

   if www_Exec_Method( "SESSION", "STDERROR", ErrorText, "", "", "", "", "", errorText ) then
      * Finish processing
   end else
      abort = TRUE$
   end

[top]

Copyright © 2005 The Sprezzatura Group. All rights reserved.