[imp] how to kill an IMP connection

Brent J. Nordquist bjn@horde.org
Mon, 5 Feb 2001 13:11:34 -0600 (CST)


On Mon, 5 Feb 2001, Mike Coughlan <mcoughlan@gothambroadband.com> wrote:

> How is it possible to kill a PHPLIB session to force someone out of IMP?  Is
> that an IMP thing, or a general PHP issue?

IMP 2.2.x uses PHPLIB sessions; the same general principle would hold for
any application that uses PHPLIB sessions (or PHP sessions for that
matter).  The user's entry in the PHPLIB session storage (database or
shared memory) is what gives their session persistance; that is, the entry
is how the system knows that they're authenticated (logged in) and what
their state is.  Remove the entry and >bamf!< they're logged out of IMP;
that is, the next time they click a link IMP will force them to log in
again.

There is no persistant session between IMP and the IMAP server, as I've
mentioned.  The issue is that if someone leaves their browser logged in to
IMP, the check-mail feature will cause an IMAP connection to be opened for
that user every 5 minutes (or whatever is configured), which will conflict
if they're now trying to use IMAP from somewhere else.

-- 
Brent J. Nordquist <bjn@horde.org>
Yahoo!: Brent_Nordquist / AIM: BrentJNordquist / ICQ: 76158942