• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 295
  • 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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: MCSA MCSE Windows Server 2012

This course teaches how to install and configure Windows Server 2012 R2.  It is the first step on your path to becoming a Microsoft Certified Solutions Expert (MCSE).

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