develooper Front page | perl.beginners | Postings from December 2002

cookies, cant reach it from $ENV{'HTTP_COOKIE'}

From:
Erik Browaldh
Date:
December 9, 2002 06:01
Subject:
cookies, cant reach it from $ENV{'HTTP_COOKIE'}
Message ID:
3DF4A06E.5010908@pool.informatik.rwth-aachen.de
Hello again!

going from one cgi-scripts to another and I cant get the cookie?
I write some of the code here.

cgi-script 1:
..
...
use CGI qw(:standard);

$name1=param('name'); # get the name from a fill out form

$cookie1=cookie(-name=>$name1 ....);

print "Content-Type:text/html\n\n";

then I open another html-document, (lets call it "2nd.html")
and print the cookie-name out.
This part is working!
but from this "2nd.html" I have a link <a> 2nd.cgi </a>


code of cgi-script 2:
...
..
use CGI qw(:standard);

$cdata=$ENV{'HTTP_COOKIE'};

print $cdata; #this doesnt work!!


Anybody who can help me?

thanks in advanced!
Erik
















nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About