[Zope] Session data in URL *or* in cookie
Kevin Carlson
khcarlso@bellsouth.net
Wed, 26 Feb 2003 14:47:14 -0500
I think encodeURL already does this (in 2.6+) if you call it with the
proper keywords. If you pass in the keyword 'style' and set it equal to
anything but 'querystring' it should generate what you're looking for.
Kevin
Lubos Culen wrote:
> Dieter,
>
> thank you very much for answer - I see I will have to encode the URLs
> "manually" when user has not cookies enabled. But yet one more
> question: Now I'm using the function encodeUrl, which transfers URL to
> something like http://foo.com/amethod?_ZopeId=as9dfu0adfu0ad . But -
> is in Zope any similar function, which will encode the URLs in a way
> http://foo.com/_ZopeId/as9dfu0adfu0ad/amethod (exactly as automated
> URL- encoding engine does it) ? This encoding has big advantage that
> the session will remain when relative links are used, so I would find
> very handy if I could encode the session data this way.
>
> Thanks,
>
> Lubos.
>
> On Tue, 25 Feb 2003 23:40:00 +0100, Dieter Maurer
> <dieter@handshake.de> wrote:
>
>> Lubos Culen wrote at 2003-2-25 15:10 +0100:
>> > ...
>> > So the question is - is there a way how system could detect if user
>> has or > hasn't cookies and would encode Zope-Generated URLs *only*
>> if user has > cookies disabled? Or does some session tracking product
>> for Zope exist > which does it handle this way?
>>
>> When you see cookies, they are enabled.
>>
>> I think, you can check in JavaScript whether cookies are enabled.
>>
>> You can set a cookie and see whether it comes back.
>>
>> I fear that's all what is there.
>>
>>
>> Dieter
>>
>
>
>