At 05:24 PM 10/29/00 +0000, Greg Cope wrote:
>Announcing Apache::SessionManager.

Hi Greg,

Here's a couple of other comments.

Don't forget to keep track of args on redirects:

GET /a5cc39a8c110566e41b5b8efafc2a055/index.html/abc/123?query=abc http/1.0
Cookie: SESSION=cb74254c1de96365e91fa6d6d481f952

HTTP/1.1 302 Found
Date: Sun, 29 Oct 2000 18:28:54 GMT
Server: Apache/1.3.14 (Unix) mod_perl/1.24_01
Location: /index.html/abc/123    <<<<=== lost the args here.

And don't forget about the use of DirectoryIndex:
GET /index.html http/1.0

HTTP/1.1 302 Found  <<== here's your redirect

Now this gets through:
GET / http/1.0

HTTP/1.1 200 OK


I'm also unclear about excluding some files with $NON_MATCH.  Perhaps I
didn't set it up correctly.  

If the session is in the URL, and a browser uses relative links it will try
to use that session for all links.  So if $NON_MATCH is used to ignore
.gif, for example, I see this:

File does not exist:
/usr/local/apache/htdocs/f0d960ddbbe1e82ca55ed2372447751e/apache_pb.gif

You might consider moving some of your code into other handlers later in
the request and just let the transhandler extract out the session id.  That
way you can use <directory> and friends to configure what requires a
session and what doesn't, and you can use PerlSetVars to control behavior
section-by-section in httpd.conf.

Hope some of this helps.

Have fun,

Bill Moseley
mailto:[EMAIL PROTECTED]

Reply via email to