Wayne Pierce
shalofin at gmail.com
Wed Jun 29 11:50:07 EDT 2005
After hitting send I realized the last message only went to Graham... On 6/29/05, Wayne Pierce <shalofin at gmail.com> wrote: > It works for me with both ApplicationPath and the explicity > PythonHandler for each directory. One of my applications (which I > can't change yet) is running off the web root; so all the other > applications are technically under that app. > > For archival purposes, here are the relevant lines in my > .../conf.d/python.conf file: > > <Directory "/var/www/html"> > AddHandler mod_python .psp > PythonHandler mod_python.psp > PythonOption ApplicationPath /var/www/html > PythonDebug Off > </Directory> > > <Directory "/var/www/html/dev/chblmd"> > AddHandler mod_python .psp > PythonHandler mod_python.psp > PythonOption ApplicationPath /var/www/html/dev/chblmd > PythonDebug Off > </Directory> > > Thanks for all the help, > > Wayne > > On 6/28/05, Graham Dumpleton <grahamd at dscpl.com.au> wrote: > > > > On 29/06/2005, at 8:06 AM, dharana wrote: > > > > > Graham Dumpleton wrote: > > >> At a quick glance I can't see how this may or may not be used by the > > >> Session > > >> implementation, but isn't it possible to tie cookies to a particular > > >> path > > >> within in a domain? If the session was somehow associated with a > > >> path, eg. > > >> the handler root, could different session IDs for different parts of > > >> the > > >> documentation tree simply be kept separate by appropriate use of > > >> Handler > > >> directive in the root of each separate application context. How does > > >> the > > >> existing ApplicationPath option come into this? Never exactly > > >> understood > > >> what it did and thought that it was something related to having > > >> different > > >> session contexts? Seems to me that this might be better than fudging > > >> what > > >> name the session cookie uses. > > > > > > It seems Nicolas was faster. > > > > Faster in what respect? What is better, a quick answer or a correct > > answer? :-) > > > > Although I did notice that Nicolas' reply to my ApplicationPath mail > > got to > > me before my original even came back from the mailing list. Spooky. > > > > > Anyways, I don't believe it will hurt to have the cookie name > > > configurable btw. > > > > One also shouldn't let rampant featureism creep in either. If there is > > already > > one good way of doing things, one shouldn't be adding in new stuff just > > for the > > sake of it. In practice I don't feel that the ability to change the > > cookie name > > would get used. The only good reason I can see for the ability to > > change the > > name is to eliminate "py" out of the cookie name to hide the fact that > > Python > > is used in an implementation of a site. I don't believe one gains > > anything > > more than that from the feature given that ApplicationPath already > > provides a > > better solution. > > > > Graham > > > > _______________________________________________ > > Mod_python mailing list > > Mod_python at modpython.org > > http://mailman.modpython.org/mailman/listinfo/mod_python > > >
|