Page 1 of 1

AppGiniHelper logOutUser();

Posted: 2022-08-04 19:46
by AhmedBR
Hi Jan,

Finally got some time to install and give it a test drive.
This lib is very nice, you have done a good job, especially with the pre-built indicators, it gives you a jump start with the lib. :)

I have a newbie quick question, If I want to logOutUser(); at say 18:00
Something like If( time() = 18:00 , logOutUser())
Where would I start?

Thanks,
Ahmed

Re: AppGiniHelper logOutUser();

Posted: 2022-08-04 20:03
by jsetzer
Hi, thanks for your nice feedback. The indicators lib is meant for recurring display of values, calculated on serverside, in browser. I never thought about controlling the current session depending on time.

I hope someone else can contribute php code for automatic sign-out. That code should be integrated with indicators handler hook function.

Re: AppGiniHelper logOutUser();

Posted: 2022-08-04 20:10
by AhmedBR
Got you, it is just when I saw it self updating, this occurred to me.

Thanks

Re: AppGiniHelper logOutUser();

Posted: 2022-08-04 20:11
by jsetzer
Should be possible. But I guess there is a simpler way to close session at a certain time.