mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-31 01:35:36 +02:00
Filter config_prepare_session when use F5 balancer - #1882
This commit is contained in:
parent
dc44db428f
commit
16f5b047d6
@ -475,7 +475,18 @@ if (! isset ($config['id_user'])) {
|
||||
db_logon ($nick_in_db, $_SERVER['REMOTE_ADDR']);
|
||||
$_SESSION['id_usuario'] = $nick_in_db;
|
||||
$config['id_user'] = $nick_in_db;
|
||||
|
||||
// Check if connection goes through F5 balancer. If it does, then don't call config_prepare_session() or user will be back to login all the time
|
||||
$prepare_session = true;
|
||||
foreach ($_COOKIE as $key=>$value) {
|
||||
if (preg_match('/BIGipServer*/',$key) ) {
|
||||
$prepare_session = false;
|
||||
}
|
||||
}
|
||||
if ($prepare_session){
|
||||
config_prepare_session();
|
||||
}
|
||||
|
||||
if (is_user_admin($config['id_user'])) {
|
||||
// PHP configuration values
|
||||
$PHPupload_max_filesize = config_return_in_bytes(ini_get('upload_max_filesize'));
|
||||
|
Loading…
x
Reference in New Issue
Block a user