Making cookies with php and perl

I am trying to set a cookie using PHP, so it's the same as the one output by the Perl code below:\[code\]my %auth;$auth{'username'} = $username;$auth{'password'} = $password;my $wholesaleauth = $co->cookie( -name=>'wholesaleauth', -value=http://stackoverflow.com/questions/2061969/>/%auth, -expires=>'+1h', -path=>'/');\[/code\]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:\[code\]password&PASSWORD&username&USERNAME\[/code\]I am trying to basically mimic that but in PHP.
 
Back
Top