perl-embperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Steven D. Arnold" <stev...@permanent.cc>
Subject RE: more udat persistence issues
Date Sat, 07 Apr 2001 20:32:19 GMT
<html>
At 09:59 AM 5/18/2000 +0200, Gerald Richter wrote:<br>
<br>
<blockquote type=cite cite>Embperl send a cookie the first time %udat is used and the
browser should<br>
send it back on _every_ request.<br>
<br>
One other issuse that could arise is, that the browser send the cookie only<br>
back if the path is the same or below the one where the cookie was send. If<br>
the browser should send back the cookie for the whole site, than you have to<br>
add a<br>
<br>
PerlSetEnv EMBPERL_COOKIE_PATH /<br>
<br>
Maybe this is the reason?</blockquote><br>
<br>
Thanks for the idea.&nbsp; I've implemented it, and I'm still getting the same result.<br>
<br>
I've tried to make the problem as simple as possible.&nbsp; I've written the following
script:<br>
<br>
&lt;HTML&gt;<br>
&lt;HEAD&gt;<br>
&lt;TITLE&gt;Whee&lt;/TITLE&gt;<br>
&lt;/HEAD&gt;<br>
&lt;BODY&gt;<br>
&lt;P&gt;This is a test.&lt;/P&gt;<br>
&lt;P&gt;udat{foo} is [+ $udat{foo} +]&lt;/P&gt;<br>
[- $udat{foo} += 1 -]<br>
&lt;/BODY&gt;<br>
&lt;/HTML&gt;<br>
<br>
The first time this page is loaded, it displays:<br>
<br>
<x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>udat{foo}
is <br>
<br>
Reload, and it displays:<br>
<br>
<x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>udat{foo}
is 1<br>
<br>
Each subsequent reload increments the value.&nbsp; However, the embperl logs show no indication
of a cookie being received from the browser.&nbsp; This is IE 5.5 on Windows 2000.&nbsp;
The log segment follows:<br>
<br>
[609]HDR: 8<br>
[609]HDR: Accept=*/*<br>
[609]HDR: Accept-Language=en-us<br>
[609]HDR: Cache-Control=max-age=259200<br>
[609]HDR: Connection=keep-alive<br>
[609]HDR: Host=192.168.250.207<br>
[609]HDR: Pragma=no-cache<br>
[609]HDR: Via=1.0 proxy3.trusecure.net:80 (Squid/2.0.RELEASE)<br>
[609]HDR: X-Forwarded-For=unknown<br>
<br>
The packet capture validates this result:<br>
<br>
GET /embperl/foo.shtml HTTP/1.0<br>
Accept: */*<br>
Accept-Language: en-us<br>
Pragma: no-cache<br>
Host: 192.168.250.207<br>
Via: 1.0 proxy3.trusecure.net:80 (Squid/2.0.RELEASE)<br>
X-Forwarded-For: unknown<br>
Cache-Control: max-age=259200<br>
Connection: keep-alive<br>
<br>
HTTP/1.1 200 OK<br>
Date: Thu, 18 May 2000 11:44:49 GMT<br>
Server: Apache/1.3.12(Unix) mod_perl/1.22<br>
Content-Length: 283<br>
Keep-Alive: timeout=15, max=99<br>
Connection: Keep-Alive<br>
Content-Type: text/html<br>
<br>
No cookie was either set by the server or sent by the browser.<br>
<br>
Interestingly, when I started Netscape 4.71 to try this experiment, when I first loaded the
page, I got &quot;udat{foo} is 3&quot;.&nbsp; Then each time I reloaded, it incremented
from there.&nbsp; Perhaps embperl is using some means other than a cookie to identify
my machine?<br>
<br>
What would you say is the next step in debugging this?<br>
<br>
<br>
steve<br>
</html>



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


Mime
View raw message