Summary: | Java applets do not join session when they connect to the server. | ||
---|---|---|---|
Product: | [Applications] konqueror | Reporter: | marrs |
Component: | kjava | Assignee: | Wynn Wilkes <wynnw> |
Status: | RESOLVED DUPLICATE | ||
Severity: | normal | ||
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | RedHat Enterprise Linux | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: | |||
Attachments: | test web-application |
Description
marrs
2001-09-30 11:24:34 UTC
Is there any example on the web which developers could use, or is this solved within the current 3.1 series? Created attachment 974 [details]
test web-application
deploy this web application on your favourite servlet engine and go to
http://<myhost>:<myport>/<mypath>/index.jsp
this is still not solved in KDE_3_1_BRANCH. The problem is that most JSP engines rely on session cookies for their session managment. If cookies are enabled Konqueror receives a session cookie when it accesses the web-application. This cookie is to be used in all subsequent connections back to the server for the same session, including connections made from applets. KJAS does not have access to the cookies maintained by Konqueror (unlike JavaPlugin, which has got access to Mozilla's cookies). Therefore, when the applet sets up its own connection the server creates a new session. I have created a small web-application for testing this behaviour. Install the attached *.war file on your application server (e.g. Tomcat or JBoss) and point your browser at the web-application. A page loads which displays the current session as generated when the page was sent. It also contains an applet that makes its own connection to the server and displays the X-Session-Id header generated by the index.jsp page. Both session Ids should be identical. Mozilla/JavaPlugin handle this correctly, while two different Ids are displayed in Konqueror/KJAS. |