Hi, We were having problems storing sessions in the shared /tmp folder on our server, causing a boat-load of bump-outs, so I added to /interface/globals.php around line 37:
Worked like a champ, too, but now we get an error when clicking on Administration > Other > Database saying “phpMyAdmin has no session site ID!”. So I’m thinking the phpmyadmin is still looking for the session data in the old folder. It’s not mission critical for us, since we use our own installation of phpmyadmin for most things, but is is handy now and again for taking a quick look-see in the tables.
Any ideas on where to look for where phpmyadmin in openemr gets $_SESSION data?
Another simple option instead of changing code would be to edit your php.ini file so all sessions regardless of application use your specified session.save_path
Thanks Kevin! The server gnomes at my super-secure HIPAA compliant hosting service say editing the php.ini is not an option – that was actually my first choice.
Note to others that might want to use this to get rid of frequent “Site ID is missing from session data!” errors: you must first create a /tmp folder in your website root, chmod 733, and get the full path to it. Then you can either edit session.save_path in php.ini to match that path, or add the ini_set() line to the two files referenced above.