G
Gilles Kuhn
I'm developing a servlet application (with TOMCAT) which publishes
various type of files includind MPEG. When I click an hyperlink to a
MPEG file, a download error occurs in IE5. After hours spent on trying
to modify HTTP headers, without any success, I realized that IE opens
Windows Media Player, which download the mpeg file, but in this case,
it opens a new servlet session (new session cookies, so there is no
link anymore to the actual session in which the user is logged in). As
a result, the request is rejected, because the user is not logged in
the session.
This problem happens only with IE5 (not in IE6 nor Mozilla), and only
with WMP. Even with word or pdf files which requires external plugins
just like MPEG files it works well.
Has anyone an great idea to preserve session tracking continuity in
this case?
Thanks in advance.
ps: my configuration is:
IE 5.00
Windows Media Player 6.4.09.1121
Tomcat 4.1.18
ps2: If ever other people are faced with the same problem, I have a
temporary workaround based on HTTP header setting:
HttpServletResponse.setHeader("Content-Disposition", "attachment;
filename=video.mpg");
With this there is no error anymore, it keeps the same session, but
you have to click twice to agree for download.
--------------------------------------------------------------
Gilles Kuhn, software engineer
KUHN ORGANISATION
4, rue Hannong 67380 Lingolsheim
tél: +33 3 88 76 54 44
fax: +33 3 88 76 90 07
http://www.kuhnorga.com
--------------------------------------------------------------
various type of files includind MPEG. When I click an hyperlink to a
MPEG file, a download error occurs in IE5. After hours spent on trying
to modify HTTP headers, without any success, I realized that IE opens
Windows Media Player, which download the mpeg file, but in this case,
it opens a new servlet session (new session cookies, so there is no
link anymore to the actual session in which the user is logged in). As
a result, the request is rejected, because the user is not logged in
the session.
This problem happens only with IE5 (not in IE6 nor Mozilla), and only
with WMP. Even with word or pdf files which requires external plugins
just like MPEG files it works well.
Has anyone an great idea to preserve session tracking continuity in
this case?
Thanks in advance.
ps: my configuration is:
IE 5.00
Windows Media Player 6.4.09.1121
Tomcat 4.1.18
ps2: If ever other people are faced with the same problem, I have a
temporary workaround based on HTTP header setting:
HttpServletResponse.setHeader("Content-Disposition", "attachment;
filename=video.mpg");
With this there is no error anymore, it keeps the same session, but
you have to click twice to agree for download.
--------------------------------------------------------------
Gilles Kuhn, software engineer
KUHN ORGANISATION
4, rue Hannong 67380 Lingolsheim
tél: +33 3 88 76 54 44
fax: +33 3 88 76 90 07
http://www.kuhnorga.com
--------------------------------------------------------------