At 09:59 AM 5/18/2000 +0200, Gerald Richter wrote:
>Embperl send a cookie the first time %udat is used and the browser should
>send it back on _every_ request.
>
>One other issuse that could arise is, that the browser send the cookie only
>back if the path is the same or below the one where the cookie was send. If
>the browser should send back the cookie for the whole site, than you have to
>add a
>
>PerlSetEnv EMBPERL_COOKIE_PATH /
>
>Maybe this is the reason?
Thanks for the idea. I've implemented it, and I'm still getting the same
result.
I've tried to make the problem as simple as possible. I've written the
following script:
<HTML>
<HEAD>
<TITLE>Whee</TITLE>
</HEAD>
<BODY>
<P>This is a test.</P>
<P>udat{foo} is [+ $udat{foo} +]</P>
[- $udat{foo} += 1 -]
</BODY>
</HTML>
The first time this page is loaded, it displays:
udat{foo} is
Reload, and it displays:
udat{foo} is 1
Each subsequent reload increments the value. However, the embperl logs
show no indication of a cookie being received from the browser. This is IE
5.5 on Windows 2000. The log segment follows:
[609]HDR: 8
[609]HDR: Accept=*/*
[609]HDR: Accept-Language=en-us
[609]HDR: Cache-Control=max-age=259200
[609]HDR: Connection=keep-alive
[609]HDR: Host=192.168.250.207
[609]HDR: Pragma=no-cache
[609]HDR: Via=1.0 proxy3.trusecure.net:80 (Squid/2.0.RELEASE)
[609]HDR: X-Forwarded-For=unknown
The packet capture validates this result:
GET /embperl/foo.shtml HTTP/1.0
Accept: */*
Accept-Language: en-us
Pragma: no-cache
Host: 192.168.250.207
Via: 1.0 proxy3.trusecure.net:80 (Squid/2.0.RELEASE)
X-Forwarded-For: unknown
Cache-Control: max-age=259200
Connection: keep-alive
HTTP/1.1 200 OK
Date: Thu, 18 May 2000 11:44:49 GMT
Server: Apache/1.3.12(Unix) mod_perl/1.22
Content-Length: 283
Keep-Alive: timeout=15, max=99
Connection: Keep-Alive
Content-Type: text/html
No cookie was either set by the server or sent by the browser.
Interestingly, when I started Netscape 4.71 to try this experiment, when I
first loaded the page, I got "udat{foo} is 3". Then each time I reloaded,
it incremented from there. Perhaps embperl is using some means other than
a cookie to identify my machine?
What would you say is the next step in debugging this?
steve
--
Steven D. Arnold Que quiero sera [EMAIL PROTECTED]
"We choose to go to the moon in this decade and do the other things, not
because they are easy, but because they are hard." -- John F. Kennedy
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]