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
Not Logged in Redirect
#2
The easiest thing to do without modifying the Redirect class is to simply store the ID in a session variable. I'd use two, one for the current page and one for the previous page. Be sure to update the previous ID before the new current ID:

Code:
$_SESSION['previous_page_id'] = $_SESSION['current_page_id'];
Code:
$_SESSION['current_page_id'] = $current_page_id;
  Reply


Messages In This Thread
Not Logged in Redirect - by truemama - 07-10-2017, 03:52 PM
Not Logged in Redirect - by karsen - 07-11-2017, 05:56 PM

Forum Jump:


Users browsing this thread: 3 Guest(s)