ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage functions / Web-specific functions / Miscellaneous WEBDEV functions
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
SessionRequestedPage (Function)
In french: SessionPageDemandée
AjaxNot available
Returns the name of the page requested at the start of the session.
Note: This function is particularly useful in the project code, to know the name of the page that will be returned.
Example
SWITCH (SessionRequestedPage()) 
CASE "PAGE_Admin"
	// Vérifie les paramètres de connexion reçus sur l'URL
	IF NOT ConnecteUtilisateur() THEN
		PageDisplay(PAGE_ErreurLogin)
	END
OTHER CASE
	// Rien
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 a searchable page: name of the searchable page.
    • Connect to a site in session mode using the DynamicSiteDisplay function, specifying a page: page name (only if the appropriate access option is enabled on the page).
    • Connection to a site in session mode from a WINDEV application requesting a particular page: page name (only if the appropriate access option is activated in the page).
    • AWP page display: AWP page name.
  • 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: 03/27/2025

Send a report | Local help