keep logged in

Questions related to customising nuBuilder Forte with JavaScript or PHP.

keep logged in

Unread postby getNo » Thu Apr 15, 2021 11:58 pm

I want to get my users kept logged in for some hours.
also when they open the webside in a window via a generated link (https://forums.nubuilder.com/viewtopic.php?f=20&t=10874&p=23435#p23435)

noconfig is set.
Code: Select all
   $nuConfigKeepSessionAlive         = true;                  //-- Use a timer to keep the session alive
   $nuConfigKeepSessionAliveInterval   = 6000;                  //-- Keep-alive interval. Default 600 s (10 min)


where is the failure? what am i doing wrong?
getNo
 
Posts: 20
Joined: Fri Feb 19, 2021 2:26 am

Re: keep logged in

Unread postby kev1n » Fri Apr 16, 2021 6:21 am

kev1n
nuBuilder Team
 
Posts: 2012
Joined: Mon Oct 15, 2018 2:13 am
nuBuilder Version: 4.5

Re: keep logged in

Unread postby getNo » Fri Apr 16, 2021 4:27 pm

i read the topic, but did not really found a point for me.

i can stay logged in a long time in the same window. No issue there.

But i also want to be logged in, when the webside is opened again in a new window. if i click a link with CTRL for new tab, im logged in. But not, when i copy the url to a new tab.


Is this a normal behavior or just me?
getNo
 
Posts: 20
Joined: Fri Feb 19, 2021 2:26 am

Re: keep logged in

Unread postby kev1n » Fri Apr 16, 2021 4:46 pm

getNo wrote:Is this a normal behavior or just me?


That is the case at the moment. Since that has been bugging me too, I hope to find a solution for that.
kev1n
nuBuilder Team
 
Posts: 2012
Joined: Mon Oct 15, 2018 2:13 am
nuBuilder Version: 4.5

Re: keep logged in

Unread postby kev1n » Tue Apr 20, 2021 1:50 am

Github updated: Logging in again is not necessary if an existing session exists (and as long as the browser is not closed)
kev1n
nuBuilder Team
 
Posts: 2012
Joined: Mon Oct 15, 2018 2:13 am
nuBuilder Version: 4.5


Return to Custom Code

Who is online

Users browsing this forum: No registered users and 9 guests

cron