Cookie issue
Posted: Tue Jan 20, 2009 8:42 pm
I'm configuring the applet, trough the "cookiename" and "cookievalues" params, to include a cookie that preserves the PHP session. Everything works fine for the first uploaded file, however, on the second request the applet sends two "Cookie" headers, because the server sent a cookie back in the first HTTP response:
1st request:
1st response:
2nd request:
2nd response:
-> PHPSESSID missing
If the applet is trying to send back the received cookies, it should at least join the data under a single "Cookie" header. Although the 2109 RFC doesn't seems to limit the use of this header, I can certainly tell from practice that Apache ignores the first header in favor of the second.
1st request:
Code: Select all
[DEBUG] header - >> "Cookie: PHPSESSID=82c223c703393ab3729cfedd984b2eeb[\r][\n]"
Code: Select all
[DEBUG] header - << "Set-Cookie: language=english; expires=Fri, 20-Feb-2009 20:16:48 GMT; path=/[\r][\n]"
Code: Select all
[DEBUG] header - >> "Cookie: PHPSESSID=82c223c703393ab3729cfedd984b2eeb[\r][\n]"
[DEBUG] header - >> "Cookie: language=english[\r][\n]"
Code: Select all
[DEBUG] header - << "HTTP /1.0 401 Unauthorized[\r][\n]"
If the applet is trying to send back the received cookies, it should at least join the data under a single "Cookie" header. Although the 2109 RFC doesn't seems to limit the use of this header, I can certainly tell from practice that Apache ignores the first header in favor of the second.