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 derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Development Environment Help?

Status
Not open for further replies.

Haunter

Programmer
Jan 2, 2001
379
US
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?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top