Set frontend session time out limit in joomla

狂风中的少年 提交于 2019-12-05 09:45:08
Hari Rajagopal

you can comment the line JHtml::_('behavior.keepalive'); on top in the file modules/mod_login/tmpl/default.php

After that the time from the backend will also expires the frontend as well as backend

Try this plugin. According to my knowledge.

If you are to

Session Control Plugin make the different session lifetime for different user group on your Joomla site. Session Control Plugin make the user group online all the time on your Joomla site.

Session Control Plugin

Session Keeper

Other option

Go to Site -> Global configuration -> System tab and set the Session Lifetime

From my tests I have the opinion that the value you set in back-end (Global Configuration > System > Session Lifetime) is used for back-end as well as for front-end.

You may want to check that value you are getting in frontend. Use the code below:

echo "Session will expire in " . JFactory::getSession()->getExpire() / 60 . " min.";

It looks to me that JFactory is responsible with setting the expiration time. It uses the config time or if absent it uses 900 seconds (15 minutes).

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!