[imp] Automatic login IMP form portal

kanareykin@denison.edu kanareykin@denison.edu
Tue, 17 Jul 2001 12:47:48 -0400 (EDT)


What I mean is that I don't want to send the username and password
to the user's browser and then 'log in' the user with JavaScript
or something like that, making the browser send imapuser and pass
to redirect.php (or remote_login). In this case the password shows
up in the page's source.

It's the web server that will open the conection to IMP and 
send username/pass to IMP via POST, sort of mimicking the login 
form.

If the username/pass pair is correct, IMP usually responds by creating
a session and setting a cookie on the user's browser. And this is where
I get lost, trying to figure out where to get the value for the 
cookies, etc - in my scheme, the cookies that IMP sends, do not 
reach the user, and I have to set them myself.

I'm sorry if I wasn't clear in the first message and I hope
this one is better :)  
 
> I'm not entirely clear what you mean by having the webserver do the POST, but 
> you should be able to modify redirect.php to do what you want fairly easily.
> 
> -chuck
> 
> --
> Charles Hagenbuch, <chuck@horde.org>
> Some fallen angels have their good reasons.
> 
> -- 
> IMP mailing list: http://horde.org/imp/
> Archive: http://marc.theaimsgroup.com/?l=imp&r=1&w=2
> Frequently Asked Questions: http://horde.org/faq/
> To unsubscribe, mail: imp-unsubscribe@lists.horde.org
> 
>