Set frontend session time out limit in joomla
Asked Answered
A

3

6

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.

Abm answered 30/10, 2012 at 5:31 Comment(0)
D
5

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

Distressful answered 30/10, 2012 at 11:9 Comment(0)
P
1

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

Pullulate answered 30/10, 2012 at 5:36 Comment(2)
Session Control Plugin is compatible joomla 1.5 onlyAbm
Session Keeper is mine, and I keep it compatible with both the current LTS and STS Joomla releases (currently 2.5 and 3.x respectively)Forb
H
0

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

Hulbard answered 30/10, 2012 at 8:0 Comment(1)
Yes, Im getting the session limit in frontend, but it is not affecting the frontendAbm

© 2022 - 2024 — McMap. All rights reserved.