The following warnings occurred:
Warning [2] Undefined variable $unreadreports - Line: 26 - File: global.php(961) : eval()'d code PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/global.php(961) : eval()'d code 26 errorHandler->error
/global.php 961 eval
/showthread.php 28 require_once





× This forum is read only. As of July 23, 2019, the UserSpice forums have been closed. To receive support, please join our Discord by clicking here. Thank you!

  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Automatic logout all userspice pages when one of them is logged out
#21
To debug it, you can try replacing the javascript...replace the following:

if (data != '0') {window.location.replace(data);}

with this:

if (data != '0') {
alert("Refresh");
}else{
alert("Nothing");
}

That should display "Refresh" when the return from the PHP page is the refresh URL, and "Nothing" when it should be doing nothing. Maybe that will help? I think things were working okay for me, but perhaps it was refreshing and I just didn't notice.

*edit*

It could be another bug too...feel free to paste what you think is relevant and I can look through it. I just checked again and it seems to be working fine in my case (i.e. no refresh except when the certain conditions are met).
  Reply


Messages In This Thread
Automatic logout all userspice pages when one of them is logged out - by brian - 09-23-2016, 09:01 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)