A
|
acpan 8/9/2021 |
Normally, if it does not work at Javascript Onload, i move it to header.php, and it often helps in my situation. Also this may help: window. onload |
B
|
bioman author 8/22/2021 |
Thanks for the idea, but if I put it in the header.php, won't that affect all pages? I just want it to work once a person has logged in. |
A
|
acpan 8/22/2021 |
Read this You can use parse_url to restrict which page should be loaded with the js. |
B
|
bioman author 8/22/2021 |
Thanks for the ideas. I think I figured out the problem. I was testing the script locally and the session storage variable would no longer be stored when I navigated to the web. Here is the script that ended up working when placed in a Javascript Onload event in the event editor: //Membership login function to set sessionStorage LoginSuccess(call it upon logging in to phprunner membership) // Check browser support } else { Thanks! |
A
|
acpan 8/22/2021 |
Thanks for the update, i learn when i see how you fix it too! Good luck with your project! |
HJB 8/22/2021 | |
DISPLAYING A LIST OF USERS THAT ARE CURRENTLY LOGGED IN May be I'm totally wrong in what you intend to achieve, yet inspired by "loggedin, yes", |