Issue with sessions in MongoDB
Concerned version
Version: %2.0.0
Platform: (Nginx)
Summary
Switching Session and persistant session from File to mongo not working
Configuration in ini
[portal]
globalStorage = Apache::Session::MongoDB
globalStorageOptions = { 'collection' => 'sessions', 'connect_timeout' => '10000', 'db_name' => 'llng_db', 'host' => 'mongodb://lemonldap_1.bd.interne.urgences-sante.qc.ca:27017,lemonldap_2.bd.interne.urgences-sante.qc.ca:27017,lemonldap_3.bd.interne.urgences-sante.qc.ca:27017', 'ssl' => '0', 'dbName' => 'llng_db', 'username' => 'lol', 'password' => 'tulesaurapas', 'connect_timeout_ms' => '3000', 'read_pref_mode' => 'primaryPreferred', 'replica_set_name' => 'rs0', 'w' => '1', 'wtimeout' => '3000' }
persistentStorage = Apache::Session::MongoDB
persistentStorageOptions = { 'collection' => 'sessions_persistent', 'connect_timeout' => '10000', 'db_name' => 'llng_db', 'host' => 'mongodb://lemonldap_1.bd.interne.urgences-sante.qc.ca:27017,lemonldap_2.bd.interne.urgences-sante.qc.ca:27017,lemonldap_3.bd.interne.urgences-sante.qc.ca:27017', 'ssl' => '0', 'dbName' => 'llng_db', 'username' => 'lol', 'password' => 'tulesaurapas', 'connect_timeout_ms' => '3000', 'read_pref_mode' => 'primaryPreferred', 'replica_set_name' => 'rs0', 'w' => '1', 'wtimeout' => '3000' }
i confirm in Mongo that the data is correctly writed... In manager portal, the configuration was not changed and still refere to File. But the idea is to switch in the INI, make it's work and configure SOAP in manager for DMZ portal
When i try to log in, i get this message: Your connection has expired, you must authenticate once again
Logs
Dec 4 11:44:48 srv-pr-nginxv2 LLNG[1515]: Session 4ec020c47dbcd647db1e5a8f13670c0e can't be retrieved
Dec 4 11:44:48 srv-pr-nginxv2 LLNG[1515]: Session cannot be tied: Object does not exist in the data store at /usr/share/perl5/vendor_perl/Apache/Session/Store/File.pm line 98.
Backends used
For any bug on configuration/sessions storage, give us details on backends