While I've read the the FAQ on embedded logins, the examples don't quite handle my situation.

I have several groups of users logging in from a single login page. After their user-id and password are posted, they're regular session cookies are set and they're redirected to their group's home page.

Only one of these groups has e-mail accounts. Since I don't know prior to the form being posted whether or not the user has an e-mail account, I can't simply embed the SM login script as described in the FAQ.

One possible method seems to be to skip the javascript and set the SQMSESSID and key after I know the user belongs to a group with e-mail accounts.

The other option seems to be to place the login javascript in the page the group is redirected to and send the user-id and password variables along (it's https). Since the script is looking for data posted from a form, I'm uncertain how to modify the script to have it accept the user-id and password variables. The truth is, while I know PHP pretty well, I don't know javascript that well.

I've just installed SM v.1.4.6. While it's tremedously better now than when I last used it five years ago (version 1.0.3), it's grown much harder to modify without the fear of breaking something. I'd rather try to hook into it than modify it.

So, should I try for a javascript solution or a session cookies solution or . . . ?

Any suggested direction appreciated,

Jeff Hill

Running PHP 5.1.4


-------------------------------------------------------
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: [email protected]
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

Reply via email to