Welcome Guest, Not a member yet? Register   Sign In
Random 403 in Checkout with CI3
#3

(This post was last modified: 04-20-2024, 04:09 PM by z72diego.)

Thanks for your reply!

What information could I give you to get closer to the fix?

The error happens very frequently. I doubt the problem is that the token is expiring. I would rule it out. I'm leaning more towards a session or cookie issue. Since by testing with different pages open, it is not possible to reproduce the error either.

CodeIgniter Version: 3.0.0
PHP Version: 7.4.33

These are my CSRF settings:

PHP Code:
$config['csrf_token_name'] = 'token';
$config['csrf_cookie_name'] = 'token';
$config['csrf_expire'] = 7200;
$config['csrf_regenerate'] = FALSE;
$config['csrf_exclude_uris'] = array(); 

Maybe this information will help. It is not directly related to the error 403 but maybe it is.

In the script I use some cron tasks, which I call from the scheduled tasks of the Plesk panel.

Every time they run, they produce this error in the log:

ERROR - 2024-04-20 19:59:03 --> Severity: Warning --> ini_set(): A session is active. You cannot change the session module's ini settings at this time /var/www/vhosts/mydomain/httpdocs/app/core/system/libraries/Session/Session_driver.php 188

Session config:

PHP Code:
$config['sess_driver'] = 'database';
$config['sess_cookie_name'] = 'general_sessions';
$config['sess_expiration'] = 86400;
$config['sess_save_path'] = 'general_sessions';
$config['sess_match_ip'] = FALSE;
$config['sess_time_to_update'] = 86400;
$config['sess_regenerate_destroy'] = FALSE
Reply


Messages In This Thread
Random 403 in Checkout with CI3 - by z72diego - 04-18-2024, 05:48 PM
RE: Random 403 in Checkout with CI3 - by ozornick - 04-19-2024, 10:28 PM
RE: Random 403 in Checkout with CI3 - by z72diego - 04-20-2024, 11:29 AM



Theme © iAndrew 2016 - Forum software by © MyBB