Global variables on webapps

Hi
I need to use globals on a webapp but I don’t know where how to add the module since the option is always greyed out.
Where is the best place to add a global module ? Under app or under webpage (or window) ?

thanks

A Module is not added under anything. Right click on the xojo navigator to add a module from the menu.

Be aware that global variables in Web apps will be read and set by every user. This can be an issue.

Often, public Session properties are preferable. They will be accessible as Session.myProperty from any WebPage and method, but you will not risk collisions.

thanks I’m already moving all my variables from the global module to the session…