Forums de discussion

Liferay.Session (Javascript object)

thumbnail
Brett Lewinski, modifié il y a 7 années.

Liferay.Session (Javascript object)

Junior Member Publications: 54 Date d'inscription: 04/05/11 Publications récentes
Greetings -

Anybody know if the Liferay.Session (Javascript object) was disabled or turned off by Liferay via a patch. We noticed it is undefined on a few of our instances but do not believe it is anything we did.

Thanks
Brett
thumbnail
David H Nebinger, modifié il y a 7 années.

RE: Liferay.Session (Javascript object)

Liferay Legend Publications: 14919 Date d'inscription: 02/09/06 Publications récentes
Certainly it has not been disabled, it is a critical portion of browser-side session management.







Come meet me at the LSNA!
thumbnail
Chema Balsas, modifié il y a 7 années.

RE: Liferay.Session (Javascript object)

Regular Member Publications: 127 Date d'inscription: 25/02/13 Publications récentes
Hi Brett,

The Liferay.Session object is only instantiated if the user has not yet signed in or if having done so, didn't check the Remember Me option.

You can see this here
thumbnail
Massimiliano Assante, modifié il y a 7 années.

RE: Liferay.Session (Javascript object)

Junior Member Publications: 53 Date d'inscription: 04/03/10 Publications récentes
Hi all,
thanks for pointing this out, I was wondering why the Liferay.Session object is not instantiated when the user checks the Remember Me option.

Is it so because the session would never expire if the user checked the Remember Me option? thanks
thumbnail
David H Nebinger, modifié il y a 7 années.

RE: Liferay.Session (Javascript object)

Liferay Legend Publications: 14919 Date d'inscription: 02/09/06 Publications récentes
Remember me only applies to the process of logging in - it has nothing to do with auto-extending sessions.
thumbnail
Massimiliano Assante, modifié il y a 7 années.

RE: Liferay.Session (Javascript object)

Junior Member Publications: 53 Date d'inscription: 04/03/10 Publications récentes
Thanks for you swift reply David, however you probably didn't answer my question, i'll try to reformulate better.

Fact: Liferay.Session (Javascript) object is not instantiated when the user checks the remember me option. This is not a bug, is a feature, but what's the reason for it?

I mean, If Remember me only applies to the process of logging in as you say, which makes sense, then why you (Liferay team) decided to not instantiate the Liferay.Session (Javascript) object if Remember me is checked. Why is this unnecessary? If the session expires the users is not warned in that case.

p.s.
For my specific use case I have overridden the session timeout.jsp so that Liferay.Session (Javascript) object is instantiated regardless remember me checked.
thumbnail
David H Nebinger, modifié il y a 7 années.

RE: Liferay.Session (Javascript object)

Liferay Legend Publications: 14919 Date d'inscription: 02/09/06 Publications récentes
What settings do you have for the session in portal-ext.properties? Have you disabled the reminder and/or auto extend option?
thumbnail
Massimiliano Assante, modifié il y a 7 années.

RE: Liferay.Session (Javascript object)

Junior Member Publications: 53 Date d'inscription: 04/03/10 Publications récentes
HI David,
none of the 2. I have the default settings for remember me and auto extend, I do want people to use remember me if they wish to.