Re: Create a Session before login

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Matthew,
On Tuesday, August 08, 2006, Matthew wrote:
> Does anyone know how to create a session in PHP before the user logs in? The
> users will have already authenticated on our system so would like to build a
> session acording to their already authenticated credentials. The logins and
> passwords they use to login to the system are the same ones that they would
> use to login to SQM.

You can create a plugin to do this.  Take a look at the login_auto
plugin.  You can probably pass some kind of sso key, which can then be
used to retrieve login information for your imap server from a
different source.

The login_auto plugin is a good starting point as it uses cookies to
fetch previous login information, and automagically log them in.  You
can probably tweak it just a bit, and instead of using the cookies,
use a _POST or _GET value to get a string id for the authentication.

The advantage of using a plugin is it allows you to move it between
versions without issues, and doesn't require any code patches.

- --
Jonathan Angliss
<jon@xxxxxxxxxxxxxxxx>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (MingW32)

iD8DBQFE3JvXK4PoFPj9H3MRAtmQAKDkkkdlR1NgqSzzREMPxXl3uWhOhQCgyKRF
hqmZLkkS1RUsgdDWO0zKT+Q=
=Ng6S
-----END PGP SIGNATURE-----


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
--
squirrelmail-users mailing list
Posting Guidelines: http://www.squirrelmail.org/wiki/MailingListPostingGuidelines
List Address: squirrelmail-users@xxxxxxxxxxxxxxxxxxxxx
List Archives: http://news.gmane.org/thread.php?group=gmane.mail.squirrelmail.user
List Archives:  http://sourceforge.net/mailarchive/forum.php?forum_id=2995
List Info: https://lists.sourceforge.net/lists/listinfo/squirrelmail-users

[Index of Archives]     [Video For Linux]     [Yosemite News]     [Yosemite Photos]     [gtk]     [KDE]     [Cyrus SASL]     [Gimp on Windows]     [Steve's Art]     [Webcams]

  Powered by Linux