getsessionvar
- Ariadne >
- Library >
- Ariadne 2.2 >
- Manuals >
- Programmers Reference >
- Classes >
- Object >
- PINP Methods >
(array) getsessionvar($varname)
Retrieves the value of a variable previously stored
with putsessionvar().
| Argument | Description |
|---|---|
| (string) $varname | The name of the variable to return. |
getsessionvar() retrieves the value of a variable previously
stored with putsessionvar().
$varname must be the same name as was used to
store it.
Variables stored in a session will be available using this function as long
as the session is 'alive'. A session is killed when killsession()
is called, or when the session is 'stale', meaning: no user requests have been
made for at least the time out period. The time out period is configurable per
Ariadne installation, the default is 1 hour.

