What is the best practice for checking if the session has timed out via javascript. I want to do a check before calling an Ajax function.
From what I can see there are many ways. I was thinking of checking to see if the following is null:
1if (typeof Liferay.Session._sessionExpired === "undefined")
Does anyone see problems with this or have a better way?
BTW: using Liferay 5.2