[Gambas-user] WebForm and SessionID
g4mba5 at gmail.com
Wed Jan 20 13:52:29 CET 2021
Le 20/01/2021 à 13:43, Hans Lehmann a écrit :
> I am using the component gb.web.form in a project. This is the complete
> source code:
> Public Sub WebForm_Open()
> WebFormLogin.Debug = True
> If Not Session.Id Then
> WebLabel3.Text = "SESSION.ID = NULL"
> WebLabel3.Text = Session.Id
> After starting the programme in the IDE with an embedded HTTP server, a
> session ID is displayed in WebLabel3. After pressing F12, you can see in
> the Firefox web browser that a session cookie is set.
> According to the documentation, this was *not* to be expected.
> Question: Is it normal behaviour of a WebForm that a session is
> immediately created when it is opened?
> With kind regards
> ----[ http://gambaswiki.org/wiki/doc/netiquette ]----
You must join the full project.
All changes in the GUI are stored in the session. As soon as you modify
a control, a session is automatically created if needed.
Last point: you should use 'gb.web.gui' now. 'gb.web.form' is deprecated.
More information about the User