[prev in list] [next in list] [prev in thread] [next in thread] 

List:       horde
Subject:    [horde] horde-active-sessions with PHP 7.3/7.4
From:       Patrick Boutilier <boutilpj () ednet ! ns ! ca>
Date:       2020-11-25 17:12:05
Message-ID: 89f4642f-26d7-69c7-82fc-0a5d95d4fc9b () ednet ! ns ! ca
[Download RAW message or body]

Can anybody explain why when running with php it always shows 0 but when 
run with php-cgi it does show the proper number of sessions? This is on 
a test server so only my session shows up.


[root@horde5 config]# php -v
PHP 7.4.12 (cli) (built: Oct 27 2020 15:01:52) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
     with Zend OPcache v7.4.12, Copyright (c), by Zend Technologies


[root@horde5 config]# php-cgi -v
PHP 7.4.12 (cgi-fcgi) (built: Oct 27 2020 15:01:52)
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
     with Zend OPcache v7.4.12, Copyright (c), by Zend Technologies



[root@horde5 config]# php /usr/bin/horde-active-sessions
0



[root@horde5 config]# php-cgi /usr/bin/horde-active-sessions
X-Powered-By: PHP/7.4.12
Set-Cookie: Horde5nspes=nqem3pvop8eavfcicelv1c5v7a; path=/; 
domain=127.0.0.1; secure; HttpOnly
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate
Pragma: no-cache
Set-Cookie: horde_secret_key=nqem3pvop8eavfcicelv1c5v7a; path=/; 
domain=127.0.0.1; secure; HttpOnly
Content-type: text/html; charset=UTF-8

1







Errors in /var/log/messages when running with just php:


Nov 25 12:57:57 horde5 HORDE[678957]: [horde] PHP ERROR: 
session_start(): Failed to read session data: user (path: ) [pid 678957 
on line 139 of "/usr/share/pear/Horde/Core/Factory/SessionHandler.php"]

Nov 25 12:57:57 horde5 HORDE[678957]: [horde] PHP ERROR: 
session_decode(): Session is not active. You cannot decode session data 
[pid 678957 on line 143 of 
"/usr/share/pear/Horde/Core/Factory/SessionHandler.php"]

Nov 25 12:57:57 horde5 HORDE[678957]: [horde] PHP ERROR: 
session_destroy(): Trying to destroy uninitialized session [pid 678957 
on line 151 of "/usr/share/pear/Horde/Core/Factory/SessionHandler.php"


["boutilpj.vcf" (text/x-vcard)]
[Attachment #4 (text/plain)]

-- 
Horde mailing list
Frequently Asked Questions: http://horde.org/faq/
To unsubscribe, mail: horde-unsubscribe@lists.horde.org


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic