Welcome Guest, Not a member yet? Register   Sign In
CI4 Best way to ignore specific url in $_SESSION['_ci_previous_url'
#2

Digging into the issue further it looks like the javascript sendBeacon get's counted correctly as ajax when it does a POST but every so often the browser is sendingĀ  GET request at the same time from the same function when it shouldn't be. I started a stack thread specifcally to figure this out https://stackoverflow.com/questions/6292...t-and-post but my original post question is still valid in having a way to filter our specific urls' from getting saved. I tried setting up a "before" filter on the controller to manually set the $_SERVER['HTTP_X_REQUESTED_WITH']) = 'xmlhttprequest' so that whatever url I determine get's flagged as ajax however CI handles this before the filters happen so that didn't work.
Reply


Messages In This Thread
RE: CI4 Best way to ignore specific url in $_SESSION['_ci_previous_url' - by Cyto5 - 07-15-2020, 11:23 AM



Theme © iAndrew 2016 - Forum software by © MyBB