[imp] Horde 3.0.4 / Imp h3-4.0.3 Autologin Script issues

Stephen March, BSc steve at enerds.ca
Sat Apr 16 22:31:40 PDT 2005


Hey folks,

  I've googled, searched FAQ's, and checked the CVS for some code to perform an
autologin from session variables - rather than having to specifically post to
the login pages. I am running Horde 3.0.4 with IMP h3-4.0.3, with PHP 4.3.11.

I have the username stored as $_SESSION["userName"] and password as
$_SESSION["password"] - coming from the website http://www.myhost.com. Horde is
also installed on the same host, http://www.myhost.com/horde/ and I'm able to
populate the "custom_login.php from IMP/scripts" form with the
username/password and have it post to the regular "login.php" of IMP for
authentication ... all is working fine.

Rather than having to POST the username/info, I was hoping to modify the
login.php of imp to pull the $_SESSION["userName"] info since it's stored on
the same server.

So far I haven't had any success with it ... I keep on getting a "Failed Login"
showing up in the logs unless I post through a form.

Any chance somebody could post me a code sample or point me to a link?  Somebody
*HAS* to have done this before :)

Cheers!
~Stephen March


More information about the imp mailing list