Page 1 of 1

session variable

Posted: Mon Oct 16, 2023 11:47 am
by Oleksandr
Good day.
Tell me please.
in which part of the page would it be correct to specify the session variable $_SESSION['username'] = $_username;
To use $_username in queries as a value.

Re: session variable

Posted: Mon Oct 16, 2023 12:17 pm
by Pablo
PHP session variables should be set at the start of the page.
Note that this is not specific to WWB. This is standard PHP functionality.

Re: session variable

Posted: Mon Oct 16, 2023 12:26 pm
by Oleksandr
Thank you very much for your reply.
I know this does not apply to WWB.
So thank you again.