ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Web-specific functions / Miscellaneous WEBDEV functions
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
SessionRequestedPage (Function)
In french: SessionPageDemandée
AjaxNot available
Returns the name of the page requested at the start of the session.
Remark: This function is particularly useful in the code of the project, to get the name of the page that will be returned.
Example
SWITCH (SessionPageRequested())
CASE "PAGE_Admin"
// Checks the connection parameters on the URL
IF NOT ConnectUser() THEN
PageDisplay(PAGE_LoginError)
END
OTHER CASE
// Nothing
END
Syntax
<Result> = SessionRequestedPage()
<Result>: Character string
  • Page name. Below are the different cases and the corresponding page name:
    • Connection to a site in Session mode via an SEO-ready page: name of the SEO-ready page.
    • Connection to a site in Session mode using DynamicSiteDisplay and specifying a page: name of the page (only if the appropriate access option is enabled in the page).
    • Connection to a site in Session mode from a WINDEV application that requests a particular page: name of the page (only if the appropriate access option is enabled in the page).
    • Displaying an Active WEBDEV Page: name of the Active WEBDEV Page.
  • Empty string ("") in other cases, or if the function is called after the session start request.
Minimum version required
  • Version 28
Comments
Click [Add] to post a comment

Last update: 04/24/2023

Send a report | Local help