we were seeing something similiar with old/variant cookie data, turned 
out to be the difference between

   $r->headers_out->add('Set-Cookie'=>$cookie);

and

   $r->headers_out->set('Set-Cookie'=>$cookie);

you show your code for generating the cookie, but not setting it, so I 
have no way of knowing if this is the same issue...

- mark

Don Fike wrote:

> Hello,
> 
>   I have a fairly simple/straight forward scripts which displays a form.  I
> set a cookie to store name and email for the submitting user just in case
> they return.  Yet when I set the cookie it gets set for all, from anywhere,
> not just me on my desktop.  Sometimes a previous cookie pops up.  The
> results aren't entirely consistent.  I am unsure if this is a mod_perl
> problem, a nested subroutine problem, or a cookie problem.  There are
> actually 3 scripts and a lib file that either display the form, process it,
> or do other process' not directly related to the form or cookies.
> 
> I am using;
> Perl 5.6
> mod_perl 1.24
> CGI.pm 2.71
> I set the cookie by;
> 
> my %user;
>   $user{'username'} = $q->param('author');
>   $user{'useremail'} = $q->param('email');
> 
>   my $cookie = $q->cookie(-name=>'user',
>                  -value=>\%user,
>                  -path=>'/threads',
>                  -expires=>'+1y');
> 
> I retrieve the cookie by;
> 
> my %user;
>   %user = $q->cookie('user');
> 
> I thought I might have had the nested subroutine problem discussed in the
> guide and moved my subroutines to a library file.  This didn't help, but I
> likely copy/pasted the problem into my new lib.pl file.
> 
> I know my description is rather cryptic but if you recognize a problem
> please let me know.
> 
> Thanks,
> 
> -------------------
>   Don Fike
>   UTK/ICL
>   [EMAIL PROTECTED]
>   865-974-0293
> -------------------


Reply via email to