Sumit Shah wrote:
I printed out the contents of the Cookie attribute in the request header
and I can see the cookie present in the header. I read all the contents
into a hash and then try to check for its existence. The
if(exists($hashMap{'SSOTokenID'})) condition fails. Does it have
anything to do with data types? How can I check for its existence?
Here is the code snippet:
my $cookie = $r->headers_in->{'Cookie'};
my @cookieArray = split(";",$cookie);
There's your problem...
my @coolieArray = split(/\;\s/,$cookie);
All of your hash keys will have a space prepended.
Rob