[eluser]Christophe28[/eluser]
Hello,
I'm stuck on the following ...
On my website users can upload photos using swf upload. Because of a bug in flash I manually send the cookie to the webserver. At serverside, I basically say: if(IS_FLASH) { do not update session } This works fine!
However, an upload can take a while and on the same page users can drag/drop the photos by using AJAX. Of course, AJAX is also a request to the webserver and the chances are good the session will be updated while the file is still uploading. If this happens I get the following error back when the upload is done:
Code:
Error #2044: Unhandled IOErrorEvent:. text=Error #2038: File I/O Error.
What happened is (I think) when the upload is done, the server send a thumbnail back. Because the cookie is updated (by AJAX) it gives an error.
Code:
$sess_time_to_update = (IS_FLASH) ? (999999999) : (5) ; // 5 = testing purpose
$config['sess_time_to_update'] = $sess_time_to_update;
In my opinion, the only solution is set $config['sess_time_to_update'] always to 999999999. Basically say, never update a session which gives us security issues ... or not?
Thanks for the help!
Christophe