hi i have created one cgi scrips in which i am setting the value of the cookie but i am not able to retrieve the cookie value in the same program and able to access the same coolie from other program.
following is my code
please suggest me the correction in this
#! /usr/bin/perl
use DBI;
use CGI;

$query = new CGI;

$cookie = $query->cookie(-name=>'MY_COOKIE',
print $query->header(-cookie=>$cookie);

$query2 = new CGI;
print $query2->header;

$theCookie = $query2->cookie('MY_COOKIE');
print $theCookie;

Last edited by shabbir; 19Apr2007 at 15:27.. Reason: Code formatting.