Proposal: add form support to zope.session.http.CookieClientIdManager
As it's name implies, the CookieClientIdManager manages HTTP client ids using HTTP cookies. Recently, I've found it to be useful to be able to get a client id via form data. The reason is that flash programs don't send browser cookies. This bit me when trying to use the YUI uploader, http://developer.yahoo.com/yui/uploader/, which uses a flash program to select and upload files. I'm using session authentication and the only way I found to make it possible to upload files to protected pages was to pass the client id as form data. I have a custom client id manager that gets the id from form data as well as from a cookie. I propose to merge this with CookieClientIdManager. Any objections? Jim -- Jim Fulton Zope Corporation
Hi Jim
Betreff: [Zope-dev] Proposal: add form support tozope.session.http.CookieClientIdManager
As it's name implies, the CookieClientIdManager manages HTTP client ids using HTTP cookies. Recently, I've found it to be useful to be able to get a client id via form data. The reason is that flash programs don't send browser cookies. This bit me when trying to use the YUI uploader, http://developer.yahoo.com/yui/uploader/, which uses a flash program to select and upload files. I'm using session authentication and the only way I found to make it possible to upload files to protected pages was to pass the client id as form data. I have a custom client id manager that gets the id from form data as well as from a cookie. I propose to merge this with CookieClientIdManager.
Any objections?
Does this bring in new dependencies to zope.session? if not moreDependencies: +1 else: -1 btw, I hope it will be still possible to remove the zope.app.appsetup somedays from the zope.session package. Regards Roger Ineichen
Jim
-- Jim Fulton Zope Corporation
On Jul 10, 2008, at 9:28 AM, Roger Ineichen wrote:
Hi Jim
Betreff: [Zope-dev] Proposal: add form support tozope.session.http.CookieClientIdManager
As it's name implies, the CookieClientIdManager manages HTTP client ids using HTTP cookies. Recently, I've found it to be useful to be able to get a client id via form data. The reason is that flash programs don't send browser cookies. This bit me when trying to use the YUI uploader, http://developer.yahoo.com/yui/uploader/, which uses a flash program to select and upload files. I'm using session authentication and the only way I found to make it possible to upload files to protected pages was to pass the client id as form data. I have a custom client id manager that gets the id from form data as well as from a cookie. I propose to merge this with CookieClientIdManager.
Any objections?
Does this bring in new dependencies to zope.session?
No. Jim -- Jim Fulton Zope Corporation
On Thursday 10 July 2008, Jim Fulton wrote:
As it's name implies, the CookieClientIdManager manages HTTP client ids using HTTP cookies. Recently, I've found it to be useful to be able to get a client id via form data. The reason is that flash programs don't send browser cookies. This bit me when trying to use the YUI uploader, http://developer.yahoo.com/yui/uploader/, which uses a flash program to select and upload files. I'm using session authentication and the only way I found to make it possible to upload files to protected pages was to pass the client id as form data. I have a custom client id manager that gets the id from form data as well as from a cookie. I propose to merge this with CookieClientIdManager.
Sounds good. I would have needed this soon too. :-) Regards, Stephan -- Stephan Richter Web Software Design, Development and Training Google me. "Zope Stephan Richter"
participants (3)
-
Jim Fulton -
Roger Ineichen -
Stephan Richter