avram / qbsql

Quizbowl stats tracking
http://quizbowl.gimranov.com/
GNU General Public License v2.0
1 stars 0 forks source link

Database-backed session store #21

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
[...] the program would claim that we were logged out ("You must log in to
use this system."), when I was not.  I had to keep sending the request
multiple times until it resolved.

Original issue reported on code.google.com by ajlyon on 19 Nov 2009 at 5:39

GoogleCodeExporter commented 9 years ago
This was reported by Stanford-- not clear what caused them to have to 
frequently log
back in to the system.

Original comment by ajlyon on 19 Nov 2009 at 5:41

GoogleCodeExporter commented 9 years ago
This is due to requests from the client being handled by different servers, and 
thus
different instances of Apache and PHP. These instances don't share their PHP 
session
codes, meaning that whenever a user send a new request, there's a risk that the
server won't have their session data. The more robust solution is switching to
MySQL-backed session stores, which PHP handles (via
http://www.php.net/manual/en/function.session-set-save-handler.php)

Original comment by ajlyon on 24 Nov 2009 at 3:35