User login - dont time out their login session
Moderator: Thorsten
-
- Posts: 4
- Joined: Fri Oct 09, 2009 2:54 pm
User login - dont time out their login session
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
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
Re: User login - dont time out their login session
Hi,
you can change the value in inc/constants.php
bye
Thorsten
you can change the value in inc/constants.php
bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
amazon.de Wishlist
Re: User login - dont time out their login session
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?Thorsten wrote:Hi,
you can change the value in inc/constants.php
bye
Thorsten
If so, can I set it to never expire? Better yet, are there plans to add a "remember me" checkbox to the login?
Thanks
-
- Posts: 200
- Joined: Tue Nov 02, 2010 9:08 am
- Location: United States-Ohio
- Contact:
Re: User login - dont time out their login session
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
please submit all feature request in the forum viewforum.php?f=4
Cheers,
Jason
phpMyFAQ Quality Assurance / Forum Moderator
Amazon.com Wishlist
Amazon.com Wishlist
Re: User login - dont time out their login session
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
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
-
- Posts: 200
- Joined: Tue Nov 02, 2010 9:08 am
- Location: United States-Ohio
- Contact:
Re: User login - dont time out their login session
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
just change the 30 to 60 or whatever you desire
Code: Select all
define('PMF_AUTH_TIMEOUT', 30);
phpMyFAQ Quality Assurance / Forum Moderator
Amazon.com Wishlist
Amazon.com Wishlist
Re: User login - dont time out their login session
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
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
Re: User login - dont time out their login session
Hi,
that's not possible with 2.7, you have to use 2.8 with the cookie authentication.
bye
Thorsten
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
amazon.de Wishlist
Re: User login - dont time out their login session
How do you do it 2.8.2?
Re: User login - dont time out their login session
Hi,
you can set a cookie in 2.8
bye
Thorsten
you can set a cookie in 2.8
bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
amazon.de Wishlist
-
- Posts: 40
- Joined: Mon Aug 11, 2014 10:09 am
Re: User login - dont time out their login session
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):
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.
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);
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
Re: User login - dont time out their login session
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?
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?
Re: User login - dont time out their login session
Hi,
sure, you can check the "Remember me" box and it'll set a cookie to auto-login.
bye
Thorsten
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
amazon.de Wishlist
-
- Posts: 40
- Joined: Mon Aug 11, 2014 10:09 am
Re: User login - dont time out their login session
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.
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.
Re: User login - dont time out their login session
Hi,
you have to increase this value: https://github.com/thorsten/phpMyFAQ/bl ... ts.php#L40
bye
Thorsten
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
amazon.de Wishlist