[eluser]R_Nelson[/eluser]
I'm creating a user Cookie that looks like this :
Code:
$cookie = array(
'name' => 'user',
'value' => $id,
'expire' => '2400000'
);
My question is will it work if i add an array in where $id is?
the array would be something like
Code:
$user = array (
'id' => $id,
'username' => $username,
'password' => $password
);
or do i need to create 1 cookie for each pram?
Im getting error
Quote:A PHP Error was encountered
Severity: Warning
Message: setcookie() expects parameter 2 to be string, array given
Filename: core/Input.php
Line Number: 254