Are PHP sessions reliable?
I'm wondering if PHP sessions are reliable; especially when there are 200-300 simultaneous users writing to it. This question is in context of the Quizzr App on CrazyEngineers IO that makes use of PHP Sessions to store some temporary data. We've noticed that when there are large number of simultaneous users, there 'might' be a case that the sessions tend to lose some of its data. This 'might' result into weird behaviour of the app for some of the quiz-takers. I'm saying 'might' because we haven't been able to pin-point the issue so far. It certainly NEVER occurs in our testing environment when there are 20-30 simultaneous users.
The server runs on HHVM and makes use of the SSD; so session R/W should not be an issue. I am unsure whether HHVM actually does in-memory caching of the sessions data to speed up the things and the last I checked, memcached doesn't play nice with HHVM. That said, I've also noticed app performance issue when running PHP 7.1.
Does anyone among us have thoughts or opinions about using php sessions? Would love to hear from you.
Tagging #-Link-Snipped-# and #-Link-Snipped-# and #-Link-Snipped-# to kick-start this discussion.