Function Forum_driver_vb3->create_login_cookie
Definitions
sources/forum/vb3.php
- Create a member login cookie.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $member_id | MEMBER | No | No | required parameter | N/A | N/A | The member ID |
| $username | ?SHORT_TEXT | No | No | required parameter | N/A | N/A | The username (null: lookup) |
| $password_raw | string | No | No | required parameter | N/A | N/A | The password (note this is sometimes not used by forum drivers, as they can also do something with what is already in the database instead) |
Preview
Code (PHP)
/**
* Create a member login cookie.
*
* @param MEMBER $member_id The member ID
* @param ?SHORT_TEXT $username The username (null: lookup)
* @param string $password_raw The password (note this is sometimes not used by forum drivers, as they can also do something with what is already in the database instead)
*/
public function create_login_cookie(int $member_id, ?string $username, string $password_raw)
* Create a member login cookie.
*
* @param MEMBER $member_id The member ID
* @param ?SHORT_TEXT $username The username (null: lookup)
* @param string $password_raw The password (note this is sometimes not used by forum drivers, as they can also do something with what is already in the database instead)
*/
public function create_login_cookie(int $member_id, ?string $username, string $password_raw)
