Set frontend session time out limit in joomla

谁说我不能喝 提交于 2019-12-22 05:14:39

问题


How to set session timeout limit for frontend users in joomla 2.5? I had set the Session Lifetime option in Global configuration but it sets the limit in backend only.


回答1:


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




回答2:


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




回答3:


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).



来源:https://stackoverflow.com/questions/13133191/set-frontend-session-time-out-limit-in-joomla

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