Mailing List Archive

embperl syntaxes
Hi,

Are these still valid?

1) multiple domain cookies
$http_headers_out{'Set-Cookie'} = ['name=cook1;value=2;',
'name=cook2;value=b'] ;

2) The Simple DBI Example,
http://perl.apache.org/embperl/pod/intro/Intro.-page-4-.htm



Regards,

Ben K.
Developer
http://benix.tamu.edu

---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org
RE: embperl syntaxes [ In reply to ]
>
> Are these still valid?
>
> 1) multiple domain cookies
> $http_headers_out{'Set-Cookie'} = ['name=cook1;value=2;',
> 'name=cook2;value=b'] ;
>

Yes

> 2) The Simple DBI Example,
> http://perl.apache.org/embperl/pod/intro/Intro.-page-4-.htm
>

Mainly yes, but <th> is not supported in Embperl 2. You need to write

[$if $row == 0$]
<th>....
[$endif$]

To get the same result

Gerald



** Virus checked by BB-5000 Mailfilter **

---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org
RE: embperl syntaxes [ In reply to ]
>> Are these still valid?
>> 1) multiple domain cookies
>> $http_headers_out{'Set-Cookie'} = ['name=cook1;value=2;',
>> 'name=cook2;value=b'] ;
> Yes

I can only get the second (or the last) cookie when I do that. Is there
some environment setting affecting this? Thanks.

Regards,

Ben K.
Developer
http://benix.tamu.edu

---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org
RE: embperl syntaxes [ In reply to ]
>>1) multiple domain cookies
>>$http_headers_out{'Set-Cookie'} = ['name=cook1;value=2;',
>>'name=cook2;value=b'] ;

>Yes


I can only get the second (or the last) cookie when I do that. Is there
some environment setting affecting this? Thanks.



Ben K.
Developer
http://benix.tamu.edu

---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org
RE: embperl syntaxes [ In reply to ]
>>> 1) multiple domain cookies
>>> $http_headers_out{'Set-Cookie'} = ['name=cook1;value=2;',
>>> 'name=cook2;value=b'] ;
>
>> Yes
>
>
> I can only get the second (or the last) cookie when I do that. Is there some
> environment setting affecting this? Thanks.

I'm on:
Apache 2.0
mod_perl/2.0.2
Embperl 2.2.0


Ben K.
Developer
http://benix.tamu.edu

---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org
RE: RE: embperl syntaxes [ In reply to ]
> >> Are these still valid?
> >> 1) multiple domain cookies
> >> $http_headers_out{'Set-Cookie'} = ['name=cook1;value=2;',
> >> 'name=cook2;value=b'] ;
> > Yes
>
> I can only get the second (or the last) cookie when I do
> that. Is there some environment setting affecting this? Thanks.
>

No, there nothing which can be set.

I just checked the code and it should work. Do you have any chance to
see what header coming through to the client?

There should be two Cookie headers for your example.

Gerald


** Virus checked by BB-5000 Mailfilter **

---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org