note: swfupload cookies 問題

2009091508:55

SWFUpload 會將 IE (或以 IE 為核心的browser) 的 cookies 一併送到 server端
若非 IE browser(如 FireFox),則 SWFUpload 並不會將 browser 的 cookies 送到 server端
這將造成 server端無法取得 cookies 資料、無法辨識上傳者的身份

===>
看來應該是 Flash 的 bug
Flash 無法讀取非 IE browser 的 cookies 資料

另外,
server 端若有驗證瀏覽器名稱(USER_AGNET) 也需注意
Flash 帶的 USER_AGENT是 Shockwave Flash
會跟原來的瀏覽器名稱不同


SWFUpload 文件的說明:
http://demo.swfupload.org/Documentation/

 

Cookie issue

On Windows the Non-IE Flash Player plugin (FireFox, Opera, Safari, etc) sends the IE cookies regardless of the browser used. This breaks authentication and sessions for many server-side scripting technologies.

Developers should manually pass Session and Authentication cookie information and manually restore Sessions on the Server Side if they wish to use Sessions

The SWFUpload package contains work-around sample code for PHP and ASP.Net