Logged User Session Name

When you setup a log in system, a session is being created by the log in script and it contains the logged user identity. This session and its value can be accessed by any other script by calling it (in your scripts).

The name of session storing logged in user identity depends on your security provider name. It’s name is:
securityProviderName + Id so if your security provider is called siteSecurity like here:

Then the session name will be: siteSecurityId

So, for example in your custom PHP script you’ll be referring to it like: $_SESSION['siteSecurityId']
The same is valid for the other server models.


WapplerPrevious   WapplerNext


2 Likes

Then the session name will be: siteSecurityId

So, for example in your custom PHP script you’ll be referring to it like: $_SESSION['siteSecurityId']
The same is valid for the other server models.

Yes, I have read that before but what I needed was the follow up –

how do I REFERENCE one particular value FROM that session?

This does not show me how to STORE the “username”

{{$_POST.username}} in that login form

these are the kind of details that I just cannot read between the lines

This has nothing to do with the form inputs. The tutorial explains how to store the logged user IDENTITY, after the user logs in not any of the form inputs.
There is already a tutorial explaining how to retrieve ANY of the user info and bind it on the page:

And there is no need to use PHP sessions for that.
Otherwise use the tutorial I mentioned in your other topic - it explains how to pass form data to another page.

1 Like