Hmmm, I already record the date and time of login. Thanks Jon, I will look at that option further. I was hoping there was some way in the Wappler UI to set an expiry for a session value.
Thanks Ben, that makes perfect sense. However the login session would get it's time from the server which is 7 hours later than local time. So that won't work?
Actually, now that I wrap my head around it, I believe it is all done server side so local time is irrelevant. I am excited to give this a go tomorrow morning. Thanks again. Much appreciated.
Unfortunately this doesn't work, I get a 500 error on my check_session.php page. Here is how I have my serverconnect set up. I have my set value set as a boolean data type. Is that correct?
@Teodor , @ben ....... I am getting close. I no longer have any 500 errors. But this instantly logs me out. What am I doing wrong. I have a feeling I have to set my timestamps to a number or something?
To figure out whats going on why not try have another set value that is now - Login time and outputs the value. Disable the logout part and see what value it actually gives you.