iijb
iijb

Reputation: 222

Set frontend session time out limit in joomla

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.

Upvotes: 6

Views: 9403

Answers (3)

Hari Rajagopal
Hari Rajagopal

Reputation: 76

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

Upvotes: 5

Valentin Despa
Valentin Despa

Reputation: 42582

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

Upvotes: 0

Techie
Techie

Reputation: 45124

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

Upvotes: 1

Related Questions