I use Apache as a standalone server on my laptop for local develpment of webpages and cgi and the sort. I am having trouble with cookies and think that it is a config problem. My script sets and pickups cookies fine on the server but fails locally. This is a hastle. In order to get my cookies to work properly there needs to be two '.' in the domain. example
my $cookie= $q->cookie ( -name=>"login",
-path=>'/',
-value=>\%info,
#-->>ThisiswhereImentioned> -domain=>'.localhost.com'
-expires=>'+1h'
);
#print $q->header();
print $q->header(-cookie=>$cookie);
My server locally will only be invoked by the loopback address(127.0.0.1) or "localhost". How can I get it two work with or Change the way Apache handle cookie domains? I have tried stuff the loopback address in the domain section and this fails? Any Help?
my $cookie= $q->cookie ( -name=>"login",
-path=>'/',
-value=>\%info,
#-->>ThisiswhereImentioned> -domain=>'.localhost.com'
-expires=>'+1h'
);
#print $q->header();
print $q->header(-cookie=>$cookie);
My server locally will only be invoked by the loopback address(127.0.0.1) or "localhost". How can I get it two work with or Change the way Apache handle cookie domains? I have tried stuff the loopback address in the domain section and this fails? Any Help?