[Seaside] REST, bookmarkable URL's

Cees de Groot seaside@lists.squeakfoundation.org
2 Jan 2003 23:19:17 +0100


Avi Bryant <avi@beta4.com> said:
>[...] All of the links on this page will still be unique, meaningless numbers,
>but everytime you choose one you'll be redirected back to the more
>REST-style url.
>
Cool. So it seems it's a documentation issue again ;-)

>The only annoying part is being able to parse the url -
>how do you know how much of it is prefix and how much is the continuation
>key...
>
I hacked VW's WTK to support session id's in the URL (don't like cookies - too
many problems with broken proxies). I use something like
'@=c=@DFLKJSLFKJSDLFKJ' as a path element, so I split the URL and check
whether any element has '@=c=@' - this is decoded, the rest is joined together
and used as the location to work with. 

-- 
Cees de Groot               http://www.cdegroot.com     <cg@cdegroot.com>
GnuPG 1024D/E0989E8B 0016 F679 F38D 5946 4ECD  1986 F303 937F E098 9E8B
Cogito ergo evigilo