Function __global->set_session_id
Definitions
sources/users_inactive_occasionals.php
- Set the session ID of the user.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $id | ID_TEXT | No | No | required parameter | N/A | N/A | The session ID |
| $guest_session | boolean | No | No | False | N/A | N/A | Whether this is a guest session (guest sessions will use persistent cookies) |
Preview
Code (PHP)
/**
* Set the session ID of the user.
*
* @param ID_TEXT $id The session ID
* @param boolean $guest_session Whether this is a guest session (guest sessions will use persistent cookies)
*/
function set_session_id(string $id, bool $guest_session = false)
* Set the session ID of the user.
*
* @param ID_TEXT $id The session ID
* @param boolean $guest_session Whether this is a guest session (guest sessions will use persistent cookies)
*/
function set_session_id(string $id, bool $guest_session = false)
