Foros de discusión
Liferay DXP and SPA session integration /Syncing
Krati Gupta, modificado hace 6 años.
Liferay DXP and SPA session integration /Syncing
Regular Member Mensajes: 119 Fecha de incorporación: 5/12/08 Mensajes recientes
Hi All,
I have made a module in Liferay DXP in which I have add my react application code , Everything is working fine as my react application is working as expected . Now the issue is when I am using my react application under Liferay module , Liferay doesn't know that user is still active and he kills the session as for Liferay portal its inactive .
Now I want to sync the Liferay and React Session , how would I do that ?
Any suggestion on it will be highly appreciated .
I have made a module in Liferay DXP in which I have add my react application code , Everything is working fine as my react application is working as expected . Now the issue is when I am using my react application under Liferay module , Liferay doesn't know that user is still active and he kills the session as for Liferay portal its inactive .
Now I want to sync the Liferay and React Session , how would I do that ?
Any suggestion on it will be highly appreciated .
David H Nebinger, modificado hace 6 años.
RE: Liferay DXP and SPA session integration /Syncing
Liferay Legend Mensajes: 14919 Fecha de incorporación: 2/09/06 Mensajes recientes
You don't have to sync, just invoke the Liferay.Session.extend() every once in awhile on user activity. This will keep the server side session alive.
Come meet me at the 2017 LSNA!
Come meet me at the 2017 LSNA!