I'm not sure about all the rest, but one old fashioned way to split this cookie that you take is like that: (although I encourage you to use CGI.pm)
my $cookie = $ENV{'HTTP_COOKIE'}; # if you wanna do this like that. @all = split(/\;/, $cookie); foreach (@all) { ($var, $value) = split(/=/); $values{$var} = $value; }
now you have a has called %values, from which you can call the username/password :
not sure why you're doing this like that though..my $username = $values{'username'}; my $password = $values{'password'}; # now do whatever you want with them.
In reply to Re: http_cookie, cookies, extracting from $ENV variable set cookie question
by Anonymous Monk
in thread http_cookie, cookies, extracting from $ENV variable set cookie question
by treasurehuntbob
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |