This will probably be easier than you think. We already have the code in
place to handle "extra path info" URLs. You just need to enable it in
Application.config, then parse the "extraURLPath" property of the Request
object. I suggest handling all this in HTTPRequest.sessionID(). You just
need to add a second place to check for the sessionID, in addition to
values().
Jay
> -----Original Message-----
> From: Heiko Hees [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, August 02, 2001 7:32 AM
> To: [EMAIL PROTECTED]
> Cc: [EMAIL PROTECTED]
> Subject: [Webware-devel] Path Based Session in WebKit
>
>
> Hi,
>
> i would like to extend WebKit in order to support automatic
> path based session handling. (eg. for webapps that should
> not depend on cookie support)
>
> the idea is to encode the session id in a virtual subpath,
> like this.
>
> http://server.com/wk/_SID_=2001080212391970896/context/AnyScript
> http://server.com/wk/_SID_=2001080212391970896/context/AnotherScript
>
> which is more convinient since you don't have to care about encoding
> the session id into every links within your site, like this.
> http://server.com/wk/context/AnyScript?_SID_=2001080212391970896
>
> An easy way would be to use mod_rewrite, but that is extra
> configuration
> overhead for users. So i would like to implement this in WebKit
> directly.
>
>
> I plan to patch Request.py doing the following:
>
> - check if automatic path based sessions are enabled in
> Config/Application.py
> - check if the path contains a session, if not:
> generate SID and
> redirect the browser to the same script, but with
> session encoded in
> path
> - extract SID
> - eliminate SID from PATH_INFO, etc.
>
>
> my questions are:
> - does this make sense?
> - is Request.py the right place to implement this feature
> - do you see any pitfalls, have any hints or suggestions
>
>
> Heiko
>
>
> --
> brainbot technologies AG
> schwalbacherstr. 74 65183 wiesbaden . germany
> vox +49 611 238505-0 fax ++49 611 238505-1
> http://brainbot.com/ mailto:[EMAIL PROTECTED]
>
> _______________________________________________
> Webware-devel mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/webware-devel
>
----------------------------------------------------------------------------
This e-mail and any attachments may be confidential or legally privileged.
If you received this message in error or are not the intended recipient, you
should destroy the e-mail message and any attachments or copies, and you are
prohibited from retaining, distributing, disclosing or using any information
contained herein. Please inform us of the erroneous delivery by return
e-mail.
Thank you for your cooperation.
----------------------------------------------------------------------------
_______________________________________________
Webware-devel mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/webware-devel