User login - dont time out their login session

In this board you can talk about general questions about phpMyFAQ

Moderator: Thorsten

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 »

Thorsten wrote:Hi,

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

bye
Thorsten
Hey Thorsten,

as i have written before that:

Code: Select all

36  * Timeout for the admin section, in minutes 
37  * 
38  * @var integer 
39  */ 
40 define('PMF_AUTH_TIMEOUT', 30); 
only works for the admin section not for the normal user frontend.
And "remember me" dont work for the frontend at least with ldap and secured Login.

I want to set a longer time out for the frontend section.
Thorsten
Posts: 15562
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: User login - dont time out their login session

Post by Thorsten »

Hi,

it has also to work in the frontend as it shares the same code.

Cheers
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 »

hmm, seems you are right...

Both admin section and frontend automatically logoff after are unknown time... (can`t say exactly how long it takes - feels something around a hour)
but i have set following:

Code: Select all

define('PMF_AUTH_TIMEOUT', 1440);
But logoff happens definitely before 24h are over.

Is there an other switch to set the timeout?
Thorsten
Posts: 15562
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: User login - dont time out their login session

Post by Thorsten »

Hi,

I'll test it. Please check the cookie, mine looks like this:
Bildschirmfoto 2014-12-08 um 15.48.14.png
bye
Thorsten
You do not have the required permissions to view the files attached to this post.
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Thorsten
Posts: 15562
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: User login - dont time out their login session

Post by Thorsten »

Hi,

okay, it doesn't recognize the cookie. Please file a bug report here: https://github.com/thorsten/phpMyFAQ/issues

Thanks!

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,

with the Internet Explorer 11 no Cookie was createt.
In Firefox is a Cookie but the session time out appears around a hour anyway.

I will make a bug report.
Thorsten
Posts: 15562
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: User login - dont time out their login session

Post by Thorsten »

Hi,

thanks, I'll work on it.

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