How to extend Liferay 6.2 session timeout by AJAX call?

There are lot of solutions present on Liferay forum, stackoverflow and many more can be found on google but all are very difficult, not clear and also not working....

So I found a simple solution which is working and I am sharing it with you people, and hope you will find it helpful!!!

You just have to add below line to each AJAX call success at client side (in JavaScipt / JQuery / AngularJS).


Liferay.Session.extend();



Comments

  1. Hi Lalit it is very helpful to me thanks for ur solution its working fine

    ReplyDelete

Post a Comment

Popular posts from this blog

How to get context path in JQuery?