in reply to How I get cookie value
If you're not using CGI.pm (or can't for some reason), you can get the HTTP_COOKIE from the program's environment (unless ssi is clearing the environment out):my $q = new CGI; my $val = $q->cookie('param');
hope this helps...my $http_cookie = $ENV{'HTTP_COOKIE'}; $http_cookie =~ /^([^=]+)=(.*)$/; my($name,$val) = ($1,$2);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: How I get cookie value
by Anonymous Monk on Jun 15, 2001 at 20:06 UTC | |
|
RE: Re: How I get cookie value
by yschang (Initiate) on Feb 04, 2000 at 19:10 UTC |