Hello,
I have a large website which can not be updated all at once due to the quantity of work to put into it.
We decided to add a new feature in the form of a vaadin application to make it feel more modern.
I have the application working as a standalone, I also did embed it into a div using the javascript of the embeding demo.
All of this is working well until user changes.
I want to be able to have the user log in into the main website and share the loggin information with vaadin in some way so that each user is running a different application.
I made my application implementing HttpServletRequestListener and get the session from from the request in onRequestStart.
When I do a request.getSession().getAttribute(“foo”) in the application, it returns null even if the website has set it just before so it seems like the session is not shared.
Looking at the forum I saw somebody using hidden fields and some javascript to share data across the boundary but it is quite an ugly way to go around.
What is the best way to implement this ? Any idea ?
Thank you.
I am running both the old website and vaadin in the same tomcat v6.0.26, Vaadin is version 6.5.6.