Hi

Up until tuesday this week this code in script was posting cookies to firefox.

sub SetUserSessionCookie { my $printresult = ""; my ($sname,$sid) = @_; #use CGI qw/:standard/; #use CGI::Cookie; warn("In set cookie: '$sname' '$sid'"); my $sessioncookie = new CGI::Cookie(-name=>$sname,-value=>$sid,-ex +pires=>$session_cookie_timeout,-path=>'/',-domain=>$domain,-secure=>1 +); warn("session cookie: '$sessioncookie'"); $printresult = print header(-Cookie=>[$sessioncookie],-type=>"text +/html"); warn("printresult: '$printresult'"); }

I had been testing program and the cookie was posted at least 100 time

On Tuesday afternoon it quit posting cookies in FF

It still posts cookies in Chrome and Blue Moon but will not work in Firefox

I checked all settings in FF, deletec all cookies and cache several times, shut down and restarted FF and computer and finally reinstalled the latest version and did a search on internet thinking a FF upgrade is the culprit. No such luck.

The warns show correct information. And: printresult: '1' at /home/jalamior/www/httpsdocs/cgi-bin/lib/perl/manageusers.pm line 687.

Of course I assume 1 = true = success.

Thanks and best regards


In reply to Stopped posting cookies by tultalk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.