PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
New WEBDEV 26 feature!
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
SessionPrologue (Function)
In french: SessionPrologue
Enables or disables a WLanguage procedure called on each request in a session. This function makes it possible to filter requests if there are security constraints.
Example
SessionPrologue(Test_Request)
 
INTERNAL PROCEDURE Test_Request()
IF xxx THEN
// Accepts the request
RESULT True
ELSE
// Rejects the request
RESULT False
END
END
Syntax
SessionPrologue([<Prologue>])
<Prologue>: Optional procedure name
Name of the WLanguage procedure called for each request made in the session. This procedure makes it possible to filter requests if there are security constraints. It can be a global or internal procedure, or a lambda.
This procedure must return a result (True or False).
If this parameter is not specified, the previously specified procedure is deleted.
Remarks
  • The WLanguage procedure is called on each request to the session.
  • The WLanguage procedure must return a boolean value:
    • True to accept the request,
    • False to reject the request (an error page is then returned to the client with HTTP code 403).
  • The WLanguage procedure is not called on the first request made to the server.
  • It is recommended to SessionPrologue in the project initialization code.
  • All the Server WLanguage functions can be used in the procedure code. In particular, the following functions can be used to obtain information on the current request:
    Versions 09 and later
    CookieRead
    New in version 09
    CookieRead
    CookieRead
    Retrieves the value of a cookie saved on the computer of Web user.
    Versions 09 and later
    PageParameter
    New in version 09
    PageParameter
    PageParameter
    Returns the value of a parameter passed to the current page.
    Versions 21 and later
    PageReadHeaderHTTP
    New in version 21
    PageReadHeaderHTTP
    PageReadHeaderHTTP
    Reads and returns one or more HTTP headers received by the current page (these headers are sent by the client to the server in the current request).
    Versions 09 and later
    SysEnvironment
    New in version 09
    SysEnvironment
    SysEnvironment
    Returns the environment variables of the operating system for the current computer.
Component: wd260page.dll
Minimum version required
  • Version 26
Comments
Click [Add] to post a comment