[dev] Problem with linking imp to a php script that recieved info from a form.

Michael Bull mbull@uoguelph.ca
Wed, 01 Nov 2000 15:49:05 -0500


At 03:42 PM 01/11/2000 -0500, you wrote:
>Quoting Michael Bull <mbull@uoguelph.ca>:
>
> > I'm trying to create a PHP application that ties into IMP as far as 
> knowing
> > who's logging in and authenticated.   What includes do I need to do in
> > order to be able to do this?  I have something working, but I think I'm
> > including too many, perhaps -- as now the code that worked before is not
> > recognizing form variables as the $formvariable style names, and is
> > complaining that they are undefined... yet they still seem to be 
> accessible.
>
>If you get imp's session information, the current user (if there is one)
>will be in $HTTP_SESSION_VARS['imp']['user']. If you want more detailed
>advice, you'll probably have to provide some of your code.

What is required to get imp's session information? Right now, the first 
part of the code looks like:

require_once './lib/base.php';
session_name($horde['session_name']);
@session_start();


Is that sufficient?