PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
New WEBDEV 24 feature!
  • This lesson will teach you the following concepts
  • Principle for displaying a WEBDEV site in AWP mode
  • What is a page in AWP mode?
  • Operating mode of AWP sites
  • How to share information (values) between pages in AWP mode?
Lesson 4.2. Principle for displaying a site in AWP mode
This lesson will teach you the following concepts
  • What is an AWP page?
  • Operating mode of AWP sites.
  • Sharing information between AWP pages.

Estimated time: 20 mn
Previous LessonTable of contentsNext Lesson
Principle for displaying a WEBDEV site in AWP mode
The Internet section of our site will be developed in AWP mode. Unlike the sites in session mode, the AWP mode allows for an easy referencing of site pages.
Let's take a look at the operating mode of AWP mode.

What is a page in AWP mode?

A page in AWP mode (Active WEBDEV Page) is a page in WEBDEV session mode without persistent context on the server. The AWP page context is temporary. It is created in a temporary session.
Reminder: In a WEBDEV site in session mode, each displayed page owns a persistent page context for the entire lifetime of the session on the server.

Operating mode of AWP sites

For each page in AWP mode displayed in the browser, the following elements are automatically created on the server:
  • a temporary session,
  • a temporary AWP page context.
The temporary session contains the temporary context of the page in AWP mode. When the page in AWP mode is sent to the Web user, the temporary page context and the temporary session are destroyed. There is nothing left in memory on the server.
The temporary context of the page in AWP mode contains all elements that have been required to build the page viewed by the Web user:
  • local variables,
  • the server processes,
  • database connections,
  • the file contexts, etc.
When the page in AWP mode is sent to the Web user, these elements are destroyed.

How to share information (values) between pages in AWP mode?

Two methods are used to share information (values) between pages in AWP mode:
  • Passing information in the URL. This method allows for a better referencing.
  • Saving information in the AWP contexts (by programming).
Passing information (values) between two pages in the URL
It is possible to pass information from one page to another via the URL. The URL has the following format: "http://Web server/.../mypage.awp?NameParam1=Value1&NameParam2=Value2".
This method allows a better page referencing because the information passed in the URL is visible and analyzed by the referencing robots.
Saving information (values) in the AWP contexts (by programming)
You have the ability to store on the server values common to several pages in AWP mode, via the AWP contexts. An AWP context is created on disk on the server. This context is available as long as pages in AWP mode are displayed and as long as the timeout of AWP contexts is not exceeded. The timeout of AWP contexts is defined in the WEBDEV administrator ("Configuration" tab, "Duration of AWP contexts" option).
To manage AWP contexts, use functions such as DeclareAWPContext, FreeAWPContext, etc.
See AWP: Managing the contexts for more details.
Previous LessonTable of contentsNext Lesson
Minimum version required
  • Version 24
Comments
Click [Add] to post a comment