Patch for session plugin to support other cookie path like '/cgi-bin/pyblosxom.py'
Martin Möllenbeck <martin-aB38q3+4pbjnA/[email protected]>
| Newsgroups | gmane.comp.web.pyblosxom.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi, I use pyblosxom with a rewrite rule behind an apache to serve the pyblosxom cgi via '/blog' uri. With this configuration the session plugin doesn't work for me. After I make the cookie path configurable and I change the path to '/' the plugin work very well. Maybe it is possible to apply the patch to the plugin distribution. ciao Martin
session.patch
(application/octet-stream, 349 B)
18a19,20
> 4) Add the path info for the cookie to the config
> py['session_path'] = '/' # optional, this is the default
199,200c201,202
< #c['path'] = "/"
< c['path'] = self._http['SCRIPT_NAME']
---
> c['path'] = self._request.getConfiguration().get('session_path', '/')
> #c['path'] = self._http['SCRIPT_NAME']
PGP.sig
(application/pgp-signature, 186 B) - not displayed