The following warnings occurred:
Warning [2] Undefined variable $unreadreports - Line: 26 - File: global.php(961) : eval()'d code PHP 8.2.25 (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
AJAX and User ID and Token
#1
Hello!

First, I'd like to say thank you for developing this.

I want to make an ajax call on a user restricted page. I set the target to the same php page and put the php code which handles the ajax call directly after the init script, but before header and navigation.

The Problem is, I need to tell the User ID within the ajax called php-handler. But since it is an ajax call, the user ID is not available (user token not submitted). Would it be safe to just submit the token within the ajax call? And if so, how do I get the token?

Thanks for advice!
  Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)