[Zope] Session transferring problem

Oliver Bleutgen myzope@gmx.net
Wed, 16 Apr 2003 15:26:11 +0200


Lubos Culen wrote:
> Hi,
> 
> I have a page with session data transferring through the URLs, so the page
> URLs in browser look like
> http://www.mysite.com/_ZopeId/84525053A0xJuPCpTSI/mydir/mydocument.
> 
> Now, let's have DTML document called "content" inside the "mydocument"
> folder, which contains some "static" HTML data (this data cannot be DTML,
> because it needs to be editable with some WYSIWYG editor). Above these
> folders is some ZPT template called index_html, which will display the
> content data inside the some template.
> Let's have some link in the "mydocument/content" document, which is for
> example <a href="other_document">Link</a> . It is inside the content area
> and it is linked *relatively*, so I suppose it should maintain the session
> data (so the Zope's result URL would be
> http://www.mysite.com/_ZopeId/84525053A0xJuPCpTSI/mydir/other_document ).
> But the reality is bad - result URL is only
> http://www.mysite.com/mydir/other_document and the session data is lost.

Maybe the reason is the <BASE ..> tag zope inserts into the document, 
look at the generated source if the BASE tag does hold the session 
information, if not, search the archives to find out how to prevent zope 
from setting this tag (or how to set it yourself correctly).

HTH,
oliver