Re: Session Issue
Christoph Zwerschke <[email protected]> Tue, 15 May 2007 08:39:40 +0200
| Newsgroups | gmane.comp.python.webware |
|---|---|
| Message-ID | <[email protected]> |
Jerome Kerdreux wrote:
> Hum .. I guess you found something. The url is http://www.larsen-b.com/Articles/X.html
> but the cookie path is "/wk/" ... Do you have a idea to fix this ?
I cannot see how this happens with the rewrite rules you posted, but you
wrote that you are using another URLDispatcher. So I assume,
http://www.larsen-b.com/Articles/X.html
is somehow redirected to something like
http://www.larsen-b.com/wk/blog/Articles?id=X
But because the redirected URI is completly different, Webware cannot
determine the correct cookie path and sets it to '/wk' instead of '/'.
Can you check the following? In WebKit/Request.py there are the
following lines (two times):
if i >= 0:
self._servletPath = self._uri[:i]
Can you change both of these cases to:
self._servletPath = i >= 0 and self._uri[:i] or '/'
Let me know if this solves the problem.
-- Chris
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/