I am trying to set a cookie using PHP, so it's the same as the one output by the Perl code below:
my %auth;
$auth{'username'} = $username;
$auth{'password'} = $password;
my $wholesaleauth = $co->cookie
(
-name=>'wholesaleauth',
-value=>\%auth,
-expires=>'+1h',
-path=>'/'
);
Now I do not know perl and all and do not want to change the perl code. I need to basically mimic the cookie. When I look at the cookie in my chrome cookie management it says the value is:
password&PASSWORD&username&USERNAME
I am trying to basically mimic that but in PHP.