User login - dont time out their login session

In this board you can talk about general questions about phpMyFAQ

Moderator: Thorsten

joycesolomon
Posts: 4
Joined: Fri Oct 09, 2009 2:54 pm

User login - dont time out their login session

Post by joycesolomon »

how do i disable all users login session timeout?

I am not referrring to the admin section, this is just for normal user, everytime user creates an article, after maybe 30 minutes, when they try to save their article , the session just logged them out, no articles are saved !
If they stay within that time limit, all the articles are able to be saved, please help

Joyce
Thorsten
Posts: 15560
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: User login - dont time out their login session

Post by Thorsten »

Hi,

you can change the value in inc/constants.php

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
awall98
Posts: 3
Joined: Thu Jul 28, 2011 3:33 pm

Re: User login - dont time out their login session

Post by awall98 »

Thorsten wrote:Hi,

you can change the value in inc/constants.php

bye
Thorsten
I realize the is an old thread, but I'm having this issue in version 2.6.17. I don't have "constants.php" in the inc dir though. Is there still somewhere I can set the timeout for public user sessions?

If so, can I set it to never expire? Better yet, are there plans to add a "remember me" checkbox to the login?

Thanks
jason102178
Posts: 200
Joined: Tue Nov 02, 2010 9:08 am
Location: United States-Ohio
Contact:

Re: User login - dont time out their login session

Post by jason102178 »

The constants.php is no longer located in inc/constant.php its located in config/constant.php, i hope this helps as far as the remember me at login, we are in the Develpment stages of 2.7 version the current version for that is 2.7 Beta and we are currently working on 2.7 Release Canidate, so now would be the time to submit a features request to see about adding remember me at login,,,,

please submit all feature request in the forum viewforum.php?f=4

Cheers,

Jason
phpMyFAQ Quality Assurance / Forum Moderator
Amazon.com Wishlist
SimonS
Posts: 3
Joined: Mon Oct 07, 2013 9:34 pm

Re: User login - dont time out their login session

Post by SimonS »

I am using 2.7.6 and I don't seem to see any user timeout settings in the config/constants.php file; the only settings I can see is for the admin session. Please can you advise how I can change the user session times to, say 60 mins? Do I need to insert a command line into the .htaccess.php file or in the config/constants.php file?

I do not have access to the root php of mysql, so I cannot change the global settings; but I need to extend the user timeout for phpmyfaq.

Any help is greatly appreciated. I realise I am using an obsolete version of phpmyfaq, but this version is stable and running OK for now. Just have a need to increase the timeout setting for users.

Thanks

Simon
jason102178
Posts: 200
Joined: Tue Nov 02, 2010 9:08 am
Location: United States-Ohio
Contact:

Re: User login - dont time out their login session

Post by jason102178 »

Yes 2.7 is out of support, I would recommend upgrading the the latest as we can not provide in depth support but if you want to continue using 2.7 you will find around line 40 in the constant.php a piece of code that looks like this

Code: Select all

define('PMF_AUTH_TIMEOUT', 30);
just change the 30 to 60 or whatever you desire
phpMyFAQ Quality Assurance / Forum Moderator
Amazon.com Wishlist
SimonS
Posts: 3
Joined: Mon Oct 07, 2013 9:34 pm

Re: User login - dont time out their login session

Post by SimonS »

Thanks Jason; that code only seems to affect the Admin Section, not the User (front-end) section.

I am using phpmyfaq in a Complete Secured FAQ mode. It seems that the user gets forced out after about 30 mins of inactivity on the site. Please advise how I can extend this?

I have extended the Admin Section timeout successfully.

Thanks

Simon
Thorsten
Posts: 15560
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: User login - dont time out their login session

Post by Thorsten »

Hi,

that's not possible with 2.7, you have to use 2.8 with the cookie authentication.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Shragel
Posts: 13
Joined: Thu Aug 15, 2013 8:37 pm

Re: User login - dont time out their login session

Post by Shragel »

How do you do it 2.8.2?
Thorsten
Posts: 15560
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: User login - dont time out their login session

Post by Thorsten »

Hi,

you can set a cookie in 2.8

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
robin-masters
Posts: 40
Joined: Mon Aug 11, 2014 10:09 am

Re: User login - dont time out their login session

Post by robin-masters »

Hey Thorsten, or all other`s who have an idea

what can i do if my phpmyfaq is completely secured and ldap login is configured and i want to
set a longer session time out for the frontend?

In "/config/constants.php" i have set the following line to 1440 min. (for one day):

Code: Select all

define('PMF_AUTH_TIMEOUT', 1440);
That work`s only for the Admin-Section. What i have to change for the frontend?

This lines seems not working - set language and session expired from 3600 to 28800.

Code: Select all

define('PMF_LANGUAGE_EXPIRED_TIME', 28800); // 30 minutes
define('PMF_SESSION_EXPIRED_TIME', 28800); // 30 minutes
define('PMF_REMEMBERME_EXPIRED_TIME', 1209600); // 2 weeks
rogierl
Posts: 9
Joined: Wed Sep 03, 2014 4:25 pm

Re: User login - dont time out their login session

Post by rogierl »

Hey Thorsten,

I managed to change the session time, very easily actually. But I was wondering: is it possible to get rid of this time all together? So to log in with no session time?
Thorsten
Posts: 15560
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: User login - dont time out their login session

Post by Thorsten »

Hi,

sure, you can check the "Remember me" box and it'll set a cookie to auto-login.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
robin-masters
Posts: 40
Joined: Mon Aug 11, 2014 10:09 am

Re: User login - dont time out their login session

Post by robin-masters »

Hey Thorsten,

it doesn`t worked for me.

I activate "remember me" or "Passwort merken" in german and hope that there will be no log off or a auto login,
but i have to login again after a certain time.

I use IE11 with Intranet Settings (low security) and i allow the Internet Explorer to save the Password.

Where can i find the session Settings?


I use secured login over ssl.
Thorsten
Posts: 15560
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: User login - dont time out their login session

Post by Thorsten »

Hi,

you have to increase this value: https://github.com/thorsten/phpMyFAQ/bl ... ts.php#L40

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Post Reply