colinmollenhour/Cm_RedisSession — pull request #13 by danslo (2013-03-16 19:25:51+00:00)
Title: Ensure we are authenticated during writes.

Magento writes away the session data inside a __construct().
Unfortunately this means Cm_RedisSession_Model_Session::after is called
-after- the Credis_Client is destructed.

Current behavior reconnects the client to do the write, but
authentication is not remembered.

This change moves authentication behavior to hasConnection and then
checks for it during a write. This does -not- fix the double connection
on every request, but that problem was already present. This is merely
fixing a symptom until the main issue is solved.