Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 293
  • Last Modified:

cgi cookie

if i use
my $cookiename = 'application'
 my %cookies = fetch CGI::Cookie;
  my $cookie = $cookies{$cookiename};

  if(defined($cookie)) {
    my $cookievalue = $cookies{$cookiename}->value;
    return \$cookievalue;
  }
  else {
       return undef;
  }
}

will this fetch all cookies of client browser.
i don't want to fetch all cookies of client browser. i m only concerned with 'application'

is there a way to fetch only the cookie i need.



0
shahrahulb
Asked:
shahrahulb
1 Solution
 
ahoffmannCommented:
> will this fetch all cookies of client browser.
no, it will only fetch those with name 'application'

> is there a way to fetch only the cookie i need.
you have to search through the list of cookies you get and find your one yourself
0

Featured Post

Upgrade your Question Security!

Add Premium security features to your question to ensure its privacy or anonymity. Learn more about your ability to control Question Security today.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now