Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

win32 Apache cookie issue?

Status
Not open for further replies.

Haunter

Programmer
Jan 2, 2001
379
US
I have a script that sets and retreives cookies on a win32 box using Apache. The scripts sets and retreives cookies containing numeric data fine. When the cookies are filled with Letters and such I cannot retreive the cookie.

I am using PERL and the CGI.pm module so this is a straight forward process. I virtually cut and paste the code from the modules documentation and no syntax error is occuring.

%info=(name=>$obj->{name}
age=>$obj->{age});

$cookie2 = $query->cookie(-name=>'cookiename',
-value=>\%info);
print $query->header(-cookie=>$cookie);
%answers = $query->cookie('cookiename');

if (%answers){..do code..}
else {print "cookie failed"}
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top