>what am I doing wrong with these co-operating perl-scripts? >the first script sets a cookie, but I cant retrieve them when running >the 2nd.. >Something wrong with the $cookies=$ENV{'HTTP_COOKIE'};
>$cookies=$ENV{'HTTP_COOKIE'}; >if ($cookies=~/name=/){ > ... >} >else { > print "it doesnt exist any cookie!"; >} Erik, I think your problem is not that HTTP_COOKIE isn't being set, but that the format isn't what you are expecting. You are testing to see if cookies contains 'name=' and if that fails, just assuming that HTTP_COOKIE is empty. Did you try simply printing HTTP_COOKIE to see what value it actually has? I don't believe cookies are returned to the server as 'name=erik' and 'value=test_cookie', but rather as 'erik=test_cookie'. So you should be testing: if ($cookies =~ /erik=/) { ---Larry +------------------------------------------------------------------------+ | Larry Coffin, G.P.H. Watertown, MA | | http://www.PointInfinity.com/lcoffin/ [EMAIL PROTECTED] | +------------------------------------------------------------------------+ Of course there's no reason for it, it's just our policy. - -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]