The above works with Netscape 4.7, Netscape 3x and WebTV. It does not work with MSIE 6.0 (not sure about earlier versions since I can't figure out how to have multiple MSIE versions installed on one box). It does not work with Mozilla. It does not work with Opera. If I remove the -domain=>, it will work eith everything except Netscape 4.7 and WebTV. Further, the following works with everything except WebTV:$cookie_out = $query->cookie( -name=>$cookie_name, -value=>$cookie_val +ue, -expires=>1400m, -path=>'/', + -domain=>$cook +ie_domain);
For this to work with WebTV, I have to substitute the CGI.pm -refresh=> with the following:print $query->header(-cookie=>$cookie_out, -refresh=>"0; URL=$config{b +aseurl}/?c=TestCookie",); print $query->start_html(-title=>'.'); print $query->end_html;
I just want this to work for all browsers. I have set up some if/elsif's to accomodate various browsers and build the cookie and cookie page correctly based on what browser/version HTTP::BrowserDetect gets from the user-agent string. However, there are so many variations of user-agent strings and browsers that I still have a lot of users who just can't get cookies to work with us. I'm so fscking frustrated that I'm about two seconds away from bashing my head into the wall. Desperate for help!print "<META HTTP-EQUIV=Refresh CONTENT=\"0; URL=$config{baseurl}/$con +fig{script_filename}?c=TestCookie\">";
In reply to Stupid CGI.PM cookies! by Seumas
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |