[Gambas-user] WebForm and SessionID

Benoît Minisini g4mba5 at gmail.com
Wed Jan 20 13:52:29 CET 2021


Le 20/01/2021 à 13:43, Hans Lehmann a écrit :
> Hello,
> 
> I am using the component gb.web.form in a project. This is the complete 
> source code:
> 
> Public Sub WebForm_Open()
> 
>    WebTextName.SetFocus()
>    WebFormLogin.Debug = True
> 
>    If Not Session.Id Then
>       WebLabel3.Text = "SESSION.ID = NULL"
>    Else
>       WebLabel3.Text = Session.Id
>    Endif
> 
> End
> 
> 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
> 
> Hans
> 
> ----[ 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.

Regards,

-- 
Benoît Minisini


More information about the User mailing list