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

Setting Cookies

Status
Not open for further replies.

Mikeinutah

Programmer
Nov 15, 2003
9
US
Hi,

I have a program that uses cookies and it turns out that AOL users cannot set my cookie. I know that cookies can be set a number of ways and was wondering if I'm setting them in a way that is not compatable with AOL. Do any of you have an answer or suggestions that can help me?

Mine are being set like this:

use CGI qw:)standard);



$user_id = "somename";
$value = qq($user_id,someinfo,somemoreinfo);
$User_cart = cookie(-name => 'User',
-domain => ' -value => $value,
-expires => '+7d',
-path => '/');

print header(-cookie => $User_cart);

Thanks,

Mike
 
Try omitting the domain value and see if that resolves the problem. Its a long shot but it might be what it takes. AOL may be doing some funky proxy stuff that is making things go wacky.

 
siberian,

Sorry for not getting back sooner.

Thanks for the help! I don't know if this is what you meant but I changed ' to 'name.com' and everything worked. Well Duh......I should have know that!

Mike
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top