PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Operating mode
  • In which cases saving the context is not required?
  • Cached sessions
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
Frees the AWP context in advance (on disk) to allow the other call on the same AWP context to be processed in parallel.
Note: This function has no effect on the AWP contexts transmitted in a cookie.
Example
FreeAWPContext()
Syntax
FreeAWPContext([<Saves Current Context>])
<Saves Current Context>: Optional boolean
  • True if he current content of variables must be saved in the context.
  • False (default value) if the context must be closed without saving the possible modifications.
Remarks

Operating mode

The WEBDEV Application Server automatically protects each AWP context from the concurrent accesses :
  • At any time, a single AWP call is allowed to handle a given AWP context.
  • The other AWP calls that want to handle this context (which means the other calls from the same client/browser) wait for the first call to be over:
    • Eech call can access the last values.
    • The global operating mode is equivalent to the operating mode of standard WEBDEV sessions.
  • The AWP context is automatically freed (for the next call) after the execution of the last WLanguage process.
In some cases, this operating mode is not optimum.
For example, an AWP page for file download will continue to maintain the lock on the context during the entire execution of FileDisplay. This lock locks the other calls of the client to the application (downloading a second file in parallel for example).
In this case, FreeAWPContext allows you to specify that the AWP context will not be used anymore and it is used to free it.

In which cases saving the context is not required?

Closing the context without saving the possible modifications is useful in the following cases:
  • No variable was declared (or re-declared) yet: no call was made to DeclareAWPContext.
  • None of the variables found in the context was modified.
  • The modified variables have no importance.
  • The modifications of variables must not be carried over.
After the call to FreeAWPContext, the other functions for managing the AWP contexts must not be called anymore.
Versions 20 and later

Cached sessions

If your project is using cached 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

Cached sessions

If your project is using cached 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.

Cached sessions

If your project is using cached 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.
Components
WEBDEV - Server code wd230page.dll
Linux wd230page.so
Minimum required version
  • Version 18
Comments
Click [Add] to post a comment