PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
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
Configures the operating mode of AWP context. See Managing AWP contexts for more details.
Notes:
  • This function should be used in the initialization process of project. Indeed, this mode cannot be modified once the session was started.
  • This function is taken into account in AWP mode only.
  • Reminder: The initialization process of project is run whenever an AWP page is displayed.
  • Versions 20 and later
    If your project is using pre-launched sessions, this function must not be used in the "Initializing the project" process. This function must be used in the "Initializing the project after connection to the site" process.
    New in version 20
    If your project is using pre-launched sessions, this function must not be used in the "Initializing the project" process. This function must be used in the "Initializing the project after connection to the site" process.
    If your project is using pre-launched sessions, this function must not be used in the "Initializing the project" process. This function must be used in the "Initializing the project after connection to the site" process.
  • See The dynamic AWP pages for more details.
Caution: This function requires a good knowledge of WEBDEV.
Example
// Manage the context of a file on the server
// and transmit the identifier by cookie
ConfigureAWPContext(ctxDisk, ctxIDCookie)
Syntax
ConfigureAWPContext(<Storage Mode of Content> [, <Transmission Mode of Identifier>])
<Storage Mode of Content>: Integer constant
Mode for storing the content of context:
ctxCookieThe content is transmitted in a cookie (behavior compatible with version 11).
Caution: This constant must not be used to store sensitive data. Indeed, this information is stored "without being encrypted".
ctxDiskThe content of context is saved in a file on the server.
<Transmission Mode of Identifier>: Integer constant (optional)
Define the transmission mode of identifier (taken into account only if <Storage Mode of Content> corresponds to the ctxDisk constant):
ctxIDCookieURL
(default value)
The identifier is transmitted by cookies. If the cookies do not operate, the identifier is transmitted by the URL. When creating the context, the two modes are used because it is not possible to know whether the cookies will be accepted or not.
ctxIDCookieThe identifier is transmitted by a cookie.
ctxIDUrlThe identifier is transmitted by the URL.
Components
WEBDEV - Server code wd230page.dll
Linux wd230page.so
Minimum required version
  • Version 12
Comments
Click [Add] to post a comment