[imp] an IMAP question about IMP
Michael M Slusarz
slusarz at bigworm.colorado.edu
Tue Feb 18 12:03:14 PST 2003
Quoting Marc Silver <marc.silver at uk.easynet.net>:
| Hi there,
|
| My apologies if this is in the wrong place, but I'd like to find out the
| following:
|
| Does IMP have to reauthenticate to an IMAP server for _EVERY_
| transaction, or does it keep some sort of persistent connection to the
| IMAP server? That said, if it is 'persistent' what would happen if the
| IMAP session timed out?
IMP authenticates only once per *request* (i.e. once for every page load).
Anything that is run out of this page load uses a global connection
variable ($imp['stream']) to access the server... (well, this is not
exactly true. there are some cases where we open more than 1 connection for
various reasons). Thus, when a page is finished loading, the IMAP
connection must be closed.
There is no support for persistent connections (like MySQL persistent
connections) in PHP for imap.
michael
______________________________________________
Michael Slusarz [slusarz at bigworm.colorado.edu]
The University of Colorado at Boulder
More information about the imp
mailing list