Bug #9415: Fix storing IMAP object in session
authorMichael M Slusarz <slusarz@curecanti.org>
Tue, 30 Nov 2010 20:36:56 +0000 (13:36 -0700)
committerMichael M Slusarz <slusarz@curecanti.org>
Tue, 30 Nov 2010 20:45:39 +0000 (13:45 -0700)
commit0f8a6c4e58b9be58226a926bc2014122c4344c03
tree806a3c419cdf3b8333f50e132b9e32d449c59c61
parent0db86d41a1f35abf34371cccc0e099c6a5ba5c90
Bug #9415: Fix storing IMAP object in session

Don't store IMAP object in session if login failed.

While rewriting this, converted IMP_Imap to Serializable interface,
which allows us to cache one more piece of data that shouldn't change
during the session (default namespace).  Also moves all recreation of
the object to the injector, which is cleaner.
imp/lib/Auth.php
imp/lib/Imap.php
imp/lib/Injector/Factory/Imap.php