[Gambas-bugtracker] Bug #2629: gb-web-gui

bugtracker at gambaswiki.org bugtracker at gambaswiki.org
Fri Sep 23 23:57:53 CEST 2022


Comment #3 by Benoît MINISINI:

Just a remark, I don't know if it's related to the problem, but normally you must not use the Session object if you use the 'gb.web.gui' component.

Because with 'gb.web.gui', the *program itself* is the session!

The first time a request is handled by the application, a process is created, and that process is not killed, but suspended when the request ends. Then the process is woke up when a new request arrives.

In other words, each new IP connexion creates automatically a new session.

The login process just identifies the user of that "process" session, and you store the user name directly in a global variable.

More information about the Bugtracker mailing list