Closed vmodrosedem closed 4 years ago
Hello there!
It looks like this issue hasn't progressed lately. There are so many issues that we just can't deal them all within a reasonable timeframe.
There are a couple of things you could help to get things rolling on this issue (this is an automated message, so expect that some of these are already in use):
Thanks again for your contributions! Even though we haven't been able to get this issue fixed, we hope you to report your findings and enhancement ideas in the future too!
The issue was automatically closed due to inactivity. If you found some new details to it or started working on it, comment on the issue so that maintainers can re-open it.
Currently, vaadin extends Liferay session for logged-in users after each request (Added as a fix for issue #8305). This sends a request to /c/portal/extend_session after each vaadin request.
But this session extension is not needed when liferay is configured to automatically extend session (
session.timeout.auto.extend=true
setting inportal-ext.properties
). With autoExtend set to true, the liferay session never expires as long as the browser window remains open. Liferay client side code automatically extends it before it expires. In this case, extending liferay session after each request only wastes resources.I propose that the session extension should not be called when autoExtend is true. This flag can be retrieved on the client side using:
$wnd.Liferay.Session.get('autoExtend')
.Related resources: https://github.com/vaadin/framework/blob/588f3cc7f8f719a6bd38b4c196fce80c8040b44c/client/src/main/java/com/vaadin/client/communication/MessageSender.java#L303
https://github.com/liferay/liferay-portal/blob/master/modules/apps/foundation/frontend-js/frontend-js-web/src/main/resources/META-INF/resources/liferay/session.js https://github.com/liferay/liferay-portal/blob/master/portal-web/docroot/html/common/themes/session_timeout.jspf
Versions: Vaadin 7.7.6 Liferay Portal Enterprise Edition 6.2.10 EE GA1